Commit f52f8eb5 authored by Robert Czechowski's avatar Robert Czechowski Committed by Robert Czechowski
Browse files

Update .gitlab-ci.yml: Restart more medal instances

parent 7c39b28c
......@@ -57,12 +57,12 @@ deploy:
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# Stop server and upload
- ssh "sudo /bin/systemctl stop medal && sudo /bin/systemctl stop medal1"
- ssh "sudo /bin/systemctl stop medal && sudo /bin/systemctl stop medal1 && sudo /bin/systemctl stop medal2 && sudo /bin/systemctl stop medal3"
- "scp target/release/medal"
- "scp -r migrations static templates export target/doc"
- "scp -r tasks/jwinf/wrapper.html"
- "scp -r tasks/jwinf/pythonwrapper.html"
- ssh "sudo /bin/systemctl start medal && sudo /bin/systemctl start medal1"
- ssh "sudo /bin/systemctl start medal && sudo /bin/systemctl start medal1 && sudo /bin/systemctl start medal2 && sudo /bin/systemctl start medal3"
- deploy
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment