M
M
Maxim Nikulin2017-04-05 07:36:47
Software Deployment
Maxim Nikulin, 2017-04-05 07:36:47

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

2 answer(s)
M
Mikhail Konyukhov, 2017-04-05
@max_nikulin

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

M
Maxim, 2017-04-05
@maxfarseer

You need to use github webhooks.
ps google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question