Answer the question
In order to leave comments, you need to log in
How to set up deployment from different branches for a SPA application?
Hello.
There is a SPA application.
There is a server for the production version.
There is a server for the test version.
How can I implement the following scenario:
1. When pushing to the test branch , the changes on the test server are pulled in and a rebuild is started.
2. When pushing to the master branch , the changes are pulled on the production server and a rebuild is started.
Answer the question
In order to leave comments, you need to log in
We use Capistrano + webhooks in git for this (or cron checks, depending on the task). On the knee, according to howto, in 40 minutes you can make a deployment, but it will be scary.
If this is at least some financially valuable application and there is responsibility for production, then DevOps / system administrator would be better off doing this.
PS Deployment for automatic production by pushing to the master is very fraught
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question