Compare commits
2 Commits
b472f9624a
...
d996fd4102
Author | SHA1 | Date | |
---|---|---|---|
|
d996fd4102 | ||
|
7aa56bb5f8 |
@ -14,6 +14,7 @@ fi
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
basedir=$HOME/discourse
|
basedir=$HOME/discourse
|
||||||
|
services="sidekiq discourse"
|
||||||
patch=$HOME/latest.patch
|
patch=$HOME/latest.patch
|
||||||
# not clear why this is a samplefile
|
# not clear why this is a samplefile
|
||||||
# they seem to do this by hand on the docker repo
|
# they seem to do this by hand on the docker repo
|
||||||
@ -23,11 +24,12 @@ nodever=$(curl -s https://raw.githubusercontent.com/discourse/discourse_docker/m
|
|||||||
|
|
||||||
cd $basedir
|
cd $basedir
|
||||||
|
|
||||||
git fetch -q
|
|
||||||
|
|
||||||
# attempting not having to use a patchfile
|
# attempting not having to use a patchfile
|
||||||
git stash
|
git stash
|
||||||
git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
|
# lets roll with their doctor scripts command
|
||||||
|
git fetch --tags --prune-tags --prune --force origin
|
||||||
|
git checkout latest-release # they seem to update this tag, not sure if we need to checkout
|
||||||
|
#git pull
|
||||||
git stash apply
|
git stash apply
|
||||||
|
|
||||||
# failsafe if stash apply causes too much trouble
|
# failsafe if stash apply causes too much trouble
|
||||||
@ -59,8 +61,8 @@ then
|
|||||||
fi
|
fi
|
||||||
RAILS_ENV=production bundle exec rails db:migrate
|
RAILS_ENV=production bundle exec rails db:migrate
|
||||||
|
|
||||||
systemctl restart --user discourse
|
systemctl restart --user $services
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
systemctl status --user discourse
|
systemctl status --user $services
|
Loading…
Reference in New Issue
Block a user