shafiqkr's avatar

Different servers in laravel

I have a very simple question.

My team mates developed a website using NGNIX & mySQL. Its live on aws on NGNIX. Now i have to work on that developed website and add more features.

Can i use apache (XAMPP) & mySQL on local environment? and once i finish it, will it work again on NGNIX?

0 likes
4 replies
jekinney's avatar

Why? It should but you always want to try and emulate production environment. This reduces (not eliminates) issues when testing locally which is the point of setting up a local enviroment. Setting up homestead or similar vm is only hard the first time. But in the end you will save a lot of headaches.

Honestly, no disrespect, but any serious dev really shouldn't except anything less then the best effort. You don't take your car in for service and pay good money for parts to find out the mechanic used duck tape and bailing wire instead.

shafiqkr's avatar

@jekinney : I understand you.

BUT the website given to me has been done in NGNIX and its live online using NGNIX.

Now i am using Apache from long time on my machine. So if i fix all those points and then if i want to upload to server using NGNIX, will it work on that?

wickley's avatar

It's very possible that it will work with zero issues but unfortunately, it's not a situation that allows for a guarantee due to differences in NGINX and Apache. Why not just install it on your local dev machine and try it out to see if it works on your development environment first?

Also, have you tried using the Laravel Homestead development environment before? That uses NGINX and is easy to setup and run on your local machine via Vagrant running on VirtualBox or VMWare.

1 like
shafiqkr's avatar

@wickley : I did not tried Laravel Homestead development environment yet. I will give a try.

1 like

Please or to participate in this conversation.