Skip to content

Instantly share code, notes, and snippets.

@JohannesBauer97
Created May 30, 2018 14:42
Show Gist options
  • Save JohannesBauer97/a0b79b3220e962aac682077bba8eab74 to your computer and use it in GitHub Desktop.
Save JohannesBauer97/a0b79b3220e962aac682077bba8eab74 to your computer and use it in GitHub Desktop.
Plauder update script
#!/usr/bin/env bash
#Settings:
REPODIR="/home/websites/Plauder"
BRANCH="develop"
echo "Starting Plauder update"
cd $REPODIR
git checkout $BRANCH
git reset --hard HEAD
git pull
cd Server
npm install
cd ../Client
npm install
ng build --prod
cd $REPODIR
rm -rf Server/www/*
cp Client/dist/Client/* Server/www -R
service plauder restart
echo "Updated and restarted Plauder"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment