Setting up development/deploy/production -server
My workflow today sucks and is no way good. So I have decided I would like to change how I work. And that is as follows: A vagrant box, for local development. With version control, using GIT. And then a development server running both git and a web server, and sql server. So a setup where I got. GIT, MySQL, PHP, Nginx and
GIT repo setup on a development server (Found this great tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-git-server-on-a-vps)
A deploy script that on all commits would deploy to the development webroot for that GIT repo/project but with some hook or something.
A deploy script to the production server, don't know how to best trigger this, please come with advice and some tutorial on how to implement this.
A production server, (All tutorials I read pretty much states, "This configuration should not be used in production. Only on development servers") So some good tutorial on setting up a production server. Containing, MySQL, PHP and Nginx. E-mail support for PHP applications.
And finally a happy life ;)