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

Upgrade script

This commit is contained in:
nemsia 2017-04-13 00:29:49 +02:00
parent 4310b471c5
commit 8ab4217365

View file

@ -32,18 +32,19 @@ sudo sed -i "s@__PATH__@$app@g" ../conf/nginx.conf*
sudo sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf* sudo sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf*
# Stop Mastodon Services # Stop Mastodon Services
sudo systemctl stop /etc/systemd/system/mastodon-*.service sudo systemctl stop mastodon-*
# Update Mastodon # Update Mastodon
sudo su - $app <<COMMANDS sudo su - $app <<COMMANDS
pushd ~/live pushd ~/live
git pull git pull
bundle install
RAILS_ENV=production bin/bundle exec rails db:migrate RAILS_ENV=production bin/bundle exec rails db:migrate
RAILS_ENV=production bin/bundle exec rails assets:precompile RAILS_ENV=production bin/bundle exec rails assets:precompile
COMMANDS COMMANDS
# Start Mastodon Services # Start Mastodon Services
sudo systemctl start /etc/systemd/system/mastodon-*.service sudo systemctl start mastodon-*
# If app is public, add url to SSOWat conf as skipped_uris # If app is public, add url to SSOWat conf as skipped_uris
if [ $is_public = "Yes" ]; if [ $is_public = "Yes" ];