Browse Source

other: minor script & ci update

develop
Arthur POULET 11 months ago
parent
commit
aa479693a3
Signed by: Sceptique GPG Key ID: C108A668349EE601
  1. 3
      .drone.yml
  2. 6
      scripts/update.sh

3
.drone.yml

@ -6,7 +6,8 @@ steps:
image: ruby:3.0
environment:
LIFEPEX_DB: "sqlite://test.db"
LIFEPEX_ENV: "test"
commands:
- bundle install --jobs=1 --retry=1
- ./init/database.rb sqlite://test.db
- ./init/database.rb
- rake test

6
scripts/update.sh

@ -1,13 +1,13 @@
#!/usr/bin/env sh
export LIFEPEX_SECRET=update_life_pex
# Your env should already be setup before you run this
cd /srv/LifePex/
git checkout master
git fetch origin
git reset --hard origin/master
git reset --hard origin/master --tags
bundle install
./init/database.rb sqlite://sqlite.db
./init/database.rb
mkdir -p ./public/doc
./init/doc.rb
sudo systemctl restart lifepex

Loading…
Cancel
Save