Skip to content

Instantly share code, notes, and snippets.

@dokicro
dokicro / script
Last active October 25, 2018 17:00
Automated Vue deployment to the server via ssh
#!/bin/bash
SSH_SERVER="user@website"
DEPLOY_PATH="/var/www/website"
DEPLOY_MODE="production"
echo "Building file"
npm run build
echo 'Compressing to dist'
tar -czf dist.gz dist