Add new server to GitLab AutoDeploy: Difference between revisions

permissions
(Amending instructions, permissions change.)
(permissions)
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:
* 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. Also check the /var/run/git-auto-deploy/git-auto-deploy.pid If not, change them:
** chown www-data:www-data /var/log/git-auto-deploy.log
** chown www-data:www-data /var/log/git-auto-deploy.log
** chown www-data:www-data /var/run/git-auto-deploy/git-auto-deploy.pid
* 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
Anonymous user