2👍
✅
You need another server on which to do your development. Typically, this is a personal machine, like your laptop. Often, you also have a copy of your production environment on a server, known as the staging server.
Your workflow would be like this:
-
Work on your code on your development machine, make all the changes you want, it’s just you using it.
-
When the code is ready for production, you push it to the staging server to see that it really works properly in a server environment.
-
When you’re sure it’s ready for production, push it to the production server.
Source:stackexchange.com