Answer the question
In order to leave comments, you need to log in
What can be used on a VPS to quickly deploy from a git repository?
Hello.
Bitbucket has a repository with a website. On the server, you need to execute the order of commands to get the latest changes, for example:
$ git pull
$ npm run build
$ /etc/init.d/supervisor restart site
Answer the question
In order to leave comments, you need to log in
git pull && npm run build && /etc/init.d/supervisor restart site
Optionally wrap this in a script. Those. create text file with .sh extension inside write
#!/bin/sh
git pull && npm run build && /etc/init.d/supervisor restart site
Try ansible. You write a script that crawls into the repository, deploys it and does everything you need: installs packages, configures users, lowers and raises services. At least put it on an empty server - if only there was access via SSH.
https://www.digitalocean.com/community/tutorials/h...
and
https://www.digitalocean.com/community/tutorials/h...
The simplest tool for pet projects is capistrano.
It has many clones, like the Deployer mentioned above.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question