1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

[fix] Switch branch to tagged release

This commit is contained in:
nemsia 2017-04-29 23:48:37 +02:00 committed by GitHub
parent b7789afb50
commit b9fc55ae81

View file

@ -37,13 +37,19 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
# Stop Mastodon Services # Stop Mastodon Services
sudo systemctl stop mastodon-*.service sudo systemctl stop mastodon-*.service
# Update Mastodon # Download Mastodon
pushd /opt/mastodon/live sudo su - $app <<PULLCOMMANDS
sudo su - $app <<COMMANDS
pushd ~/live pushd ~/live
git fetch git fetch
git pull https://github.com/tootsuite/mastodon.git master git pull https://github.com/tootsuite/mastodon.git master
git checkout $(git tag | tail -n 1) PULLCOMMANDS
# Switch branch to tagged release
pushd /opt/mastodon/live
sudo git checkout $(git tag | tail -n 1)
# Apply Mastodon upgrade
sudo su - $app <<COMMANDS
bin/bundle install bin/bundle install
yarn install --pure-lockfile yarn install --pure-lockfile
RAILS_ENV=production bundle exec rails assets:clean RAILS_ENV=production bundle exec rails assets:clean