Commit 7f591a83 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

fix: link to minerva should work

parent 5cc1a4f3
Pipeline #30456 canceled with stage
in 2 minutes and 27 seconds
......@@ -48,7 +48,7 @@ Deploy to production:
- ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/web/r3lab_$CI_JOB_ID"
- scp -P $SSHPORT -r build/* $SSHCONNECT:~/web/r3lab_$CI_JOB_ID
# Make a symbolic link to newly copied files, then remove old tasks' files, and remove all broken symbolic links
- ssh -p $SSHPORT $SSHCONNECT "cd ~/web/latest && ln -fs ../r3lab_$CI_JOB_ID/* . || true && cd ~/web/latest/web/ && ln -fs ../r3lab_$CI_JOB_ID/web/* . && cd ~/web && find . -type d -name 'r3lab*' -not -newermt '-1 minutes' -exec rm -rf {} + && find -L ~/web/latest -type l -delete && ln -fs ~/web/latest/link_to_minerva.html ~/web/latest/web/minerva-website.html || true"
- ssh -p $SSHPORT $SSHCONNECT "cd ~/web/latest && ln -fs ../r3lab_$CI_JOB_ID/* . || true && cd ~/web/latest/web/ && ln -fs ../r3lab_$CI_JOB_ID/web/* . && cd ~/web && find . -type d -name 'r3lab*' -not -newermt '-1 minutes' -exec rm -rf {} + && find -L ~/web/latest -type l -delete && mkdir -p ~/web/latest/web/minerva-website && ln -fs ~/web/latest/link_to_minerva.html ~/web/latest/web/minerva-website.html && ln -fs ~/web/latest/link_to_minerva.html ~/web/latest/web/minerva-website/index.html || true"
## Backups
......
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