LifePex/scripts/update.sh
Arthur Poulet aa479693a3
All checks were successful
continuous-integration/drone/push Build is passing
other: minor script & ci update
2021-06-24 22:24:01 +02:00

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