Issue
I have a problem. Gitlab Ci/CD works perfect and changes from repo comes to webserber if i previously connect via ssh to webserver and type
gitlab-runner run
I try to add autoload to sudo systemctl enable --now gitlab-runner
. After restart Runner is visible from GitLab admin panel and it is green, but if i push to repo changes, changes not updated till command gitlab-runner run
is run on webserver.
Solution
solution with Ubuntu (Linux) run command
sudo crontab -e
Important -> sudo give possibility run crontab tasks as root (sudoer user) Add in crontab tasks command below
@reboot sudo gitlab-runner run
On each server reboot gitlab-runner will be started
Answered By - Mmx Answer Checked By - Cary Denson (WPSolving Admin)