LifePex/scripts/update.sh

14 lines
268 B
Bash

#!/usr/bin/env sh
# Your env should already be setup before you run this
cd /srv/LifePex/
git checkout master
git fetch origin
git reset --hard origin/master --tags
bundle install
./init/database.rb
mkdir -p ./public/doc
./init/doc.rb
sudo systemctl restart lifepex