View script
#!/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 |