Question
How to setup a staging server that will then push to production server
Hi there,
One area of my workflow — like many — that is weak, is how I go from local to production. At the moment it’s dangerously messy.
I build offline, then go straight to my production droplet, create the SQL database and import and create my git hooks which pull straight into the live directory. I am really interested in finding out about using another droplet as a staging server but have yet to find a tutorial for it on Digital Ocean.
Is this something anyone fancies writing up? Seems like a missing area in the tutorial area. I can’t get my head around how the workflow would go using a staging server that keeps things from getting cluttered if you’re dealing with multiple sites. Mapping sub domains to folders seems like over time it could get massively cluttered. Is there any other options out there?
Need some advice on this
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
I would love to see a tutorial for this as well
+1 really interested in this topic too!
Would love to read about that as well
I’m about to go through the pain of this for the second only time. I’ll write it up from my notes when I’m a bit more comfortable with it :-)
+1 I would also like to see the tutorial on setting up a staging environment as well.
+1 for a solid staging and production workflow tutorial!