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

[enh] Remove asset:precompile and db:migrate on restore

This commit is contained in:
nemsia 2017-05-26 17:45:31 +02:00
parent ec04eac028
commit c78abc8b6c

View file

@ -152,12 +152,12 @@ ynh_secure_remove $final_path/mastodon_db.sql
# Create symlink for ruby
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true
# Restore Mastodon
sudo su - $app <<RCOMMANDS
cd ~/live
RAILS_ENV=production bin/bundle exec rails db:migrate
RAILS_ENV=production bin/bundle exec rails assets:precompile
RCOMMANDS
# Upgrade Mastodon
#sudo su - $app <<RCOMMANDS
#cd ~/live
#RAILS_ENV=production bin/bundle exec rails db:migrate
#RAILS_ENV=production bin/bundle exec rails assets:precompile
#RCOMMANDS
# Restore nginx configuration files
sudo cp -a ./nginx.conf "$nginx_conf"