I just started writing a web application.
I use GIT for version control, and I have GIT and a web server on the same computer.
The application has 3 environments: dev, test and production
I want to use a GIT hook after each commit to update a dev, test or production application.
What is the best practice for this?
I need something like this:
- when i commit dev should automatically update
- when the commit message contains "test:" before the message, dev and the test must be updated.
- when the commit message contains "production:" before the message - production, dev and test must be updated.
Thank!