Skip to content
Snippets Groups Projects
Commit 899db31e authored by Tim Repke's avatar Tim Repke
Browse files

gitlab ci

parent 9e206985
No related branches found
No related tags found
No related merge requests found
...@@ -103,3 +103,14 @@ Then test and restart: ...@@ -103,3 +103,14 @@ Then test and restart:
sudo nginx -t sudo nginx -t
sudo systemctl restart nginx.service sudo systemctl restart nginx.service
``` ```
## Deployment
```
$ cat /etc/sudoers.d/gitlab
gitlab-runner ALL= NOPASSWD: /usr/bin/chown -R gitlab-runner\:gitlab-runner /var/www/lithub/literature-hub
gitlab-runner ALL= NOPASSWD: /usr/bin/chown -R lithub\:lithub /var/www/lithub/literature-hub
gitlab-runner ALL= NOPASSWD: /usr/bin/systemctl stop lithub.service
gitlab-runner ALL= NOPASSWD: /usr/bin/systemctl start lithub.service
gitlab-runner ALL= NOPASSWD: /usr/bin/systemctl status lithub.service
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment