push
This commit is contained in:
parent
fb78b3b071
commit
2f954ea02e
@ -33,6 +33,7 @@ deploy-staging:
|
||||
- chmod 700 ~/.ssh
|
||||
- ssh-keyscan -H $SSH_HOST > ~/.ssh/known_hosts
|
||||
script:
|
||||
- ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop rotstaging'
|
||||
- scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging
|
||||
- ssh $SSH_USER@$SSH_HOST 'rm /home/k004373/rowing-staging/db.sqlite && cp /home/k004373/rowing/db.sqlite /home/k004373/rowing-staging/db.sqlite && mkdir /home/k004373/rowing-staging/svelte/build'
|
||||
- scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging/
|
||||
@ -52,6 +53,7 @@ deploy-main:
|
||||
- chmod 700 ~/.ssh
|
||||
- ssh-keyscan -H $SSH_HOST > ~/.ssh/known_hosts
|
||||
script:
|
||||
- ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop rot'
|
||||
- scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing
|
||||
- scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing/
|
||||
- scp -r templates $SSH_USER@$SSH_HOST:/home/k004373/rowing/
|
||||
|
Loading…
Reference in New Issue
Block a user