diff options
| author | nemsia <nemsia@nemsia.org> | 2017-07-13 00:27:17 +0200 |
|---|---|---|
| committer | nemsia <nemsia@nemsia.org> | 2017-07-13 00:27:17 +0200 |
| commit | 60ae6587feb89feb6221d43d89fac40eb44165a8 (patch) | |
| tree | b9cdf6ea7270150a29fda581c2f2b26c0225d6eb /scripts/upgrade | |
| parent | 8f88641088a09aa466d6d2de760d9470b3d4d322 (diff) | |
| parent | 8711b925306be63d7b2b7669fe2ef3cf8ebdc476 (diff) | |
| download | mastodon_ynh-60ae6587feb89feb6221d43d89fac40eb44165a8.tar.gz mastodon_ynh-60ae6587feb89feb6221d43d89fac40eb44165a8.tar.bz2 mastodon_ynh-60ae6587feb89feb6221d43d89fac40eb44165a8.zip | |
Merge remote-tracking branch 'refs/remotes/YunoHost-Apps/master' into upgrade-from-pre-release
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index 979e005..9dffa34 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -31,7 +31,7 @@ db_name=$app # Modify Nginx configuration file and copy it to Nginx conf directory 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* sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # Stop Mastodon Services @@ -71,6 +71,8 @@ sudo su - $app <<COMMANDS pushd ~/live bin/bundle install yarn install --pure-lockfile +# For 1.4.1 -> 1.4.2 migration prepare_for_foreign_keys is needed +RAILS_ENV=production bundle exec rails mastodon:maintenance:prepare_for_foreign_keys RAILS_ENV=production bundle exec rails assets:clean RAILS_ENV=production bundle exec rails assets:precompile RAILS_ENV=production bundle exec rails db:migrate |
