Commit 7e9b5971 authored by John Long's avatar John Long

Deploy: Exclude files, run migrate

parent c2e5bcb1
......@@ -25,7 +25,12 @@ deploy:prod:
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
- ssh-keyscan $DEST_HOST >> ~/.ssh/known_hosts 2>&1
- rsync -rvzPtale ssh artifacts/ $DEST_USER@$DEST_HOST:$DEST_DIR --delete --exclude=.env
- |
rsync -rvzPtale ssh artifacts/ $DEST_USER@$DEST_HOST:$DEST_DIR --delete \
--exclude=.env \
--exclude=storage \
--exclude=public/.well-known
- ssh $DEST_USER@$DEST_HOST "cd $DEST_DIR; ./artisan migrate"
when: manual
only:
- master
......
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