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:
parent
ec04eac028
commit
c78abc8b6c
1 changed files with 6 additions and 6 deletions
|
@ -152,12 +152,12 @@ ynh_secure_remove $final_path/mastodon_db.sql
|
||||||
# Create symlink for ruby
|
# Create symlink for ruby
|
||||||
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true
|
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true
|
||||||
|
|
||||||
# Restore Mastodon
|
# Upgrade Mastodon
|
||||||
sudo su - $app <<RCOMMANDS
|
#sudo su - $app <<RCOMMANDS
|
||||||
cd ~/live
|
#cd ~/live
|
||||||
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
|
||||||
RCOMMANDS
|
#RCOMMANDS
|
||||||
|
|
||||||
# Restore nginx configuration files
|
# Restore nginx configuration files
|
||||||
sudo cp -a ./nginx.conf "$nginx_conf"
|
sudo cp -a ./nginx.conf "$nginx_conf"
|
||||||
|
|
Loading…
Add table
Reference in a new issue