Skip to content
Snippets Groups Projects
Commit 1ca18078 authored by Eric Eastwood's avatar Eric Eastwood
Browse files

Save file store between deploys

parent 79afa2ad
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -56,7 +56,8 @@ test:
deploy:
stage: deploy
script:
- rsync -r --delete-after --quiet ./ $SSH_USER@$DEPLOY_HOST::apilab/
# Exclude `data` to save the file store between deploys
- rsync -r --delete-after --exclude 'data' --quiet ./ $SSH_USER@$DEPLOY_HOST::apilab/
- ssh $SSH_USER@$DEPLOY_HOST '. ~/.bashrc && . ~/.nvm/nvm.sh && nvm use stable && pm2 restart apilab'
environment:
name: production
Loading
Loading
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