Skip to content

Instantly share code, notes, and snippets.

Domagoj Franc dokicro

View GitHub Profile
@dokicro
dokicro / script
Last active Oct 25, 2018
Automated Vue deployment to the server via ssh
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
You can’t perform that action at this time.