Anonymous user
Add new server to GitLab AutoDeploy: Difference between revisions
Jump to navigation
Jump to search
Amending instructions, permissions change.
(Add new server to GitLab AutoDeploy - added content) |
(Amending instructions, permissions change.) |
||
| Line 26: | Line 26: | ||
** rm –rf * | ** rm –rf * | ||
** rm –rf .git .gitignore .htaccess | ** rm –rf .git .gitignore .htaccess | ||
* Before you do the below process, you may need to check the owner of the /var/log/git-auto-deploy.log file. It should be www-data. If not, change it: | |||
** chown www-data:www-data /var/log/git-auto-deploy.log | |||
* Start the daemon in foreground, but as the user www-data: sudo -H -u www-data bash -c 'git-auto-deploy --pid-file /var/run/git-auto-deploy/git-auto-deploy.pid --log-file /var/log/git-auto-deploy.log --config /etc/git-auto-deploy.conf.json' | * Start the daemon in foreground, but as the user www-data: sudo -H -u www-data bash -c 'git-auto-deploy --pid-file /var/run/git-auto-deploy/git-auto-deploy.pid --log-file /var/log/git-auto-deploy.log --config /etc/git-auto-deploy.conf.json' | ||
* Once static, Ctrl-C the process | * Once static, Ctrl-C the process | ||