diff options
| author | anmol <github@datamol.org> | 2018-11-02 18:48:49 +0530 |
|---|---|---|
| committer | anmol <github@datamol.org> | 2018-11-02 18:48:49 +0530 |
| commit | 1752d37cbdea9407143fa09486928b05434764da (patch) | |
| tree | 2df112d1846dc93d5f106203a5c7aa8b837568b9 /scripts | |
| parent | 8ab18453580d4a4234eafd8ad7c3379a3e9db98f (diff) | |
| download | mastodon_ynh-1752d37cbdea9407143fa09486928b05434764da.tar.gz mastodon_ynh-1752d37cbdea9407143fa09486928b05434764da.tar.bz2 mastodon_ynh-1752d37cbdea9407143fa09486928b05434764da.zip | |
Ruby update 2.5.3
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/upgrade | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index 0429013..0234b84 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -127,25 +127,25 @@ ynh_setup_source "$final_path/.rbenv/plugins/ruby-build" "app-ruby-build" # Install ruby 2.5.1 ( - exec_as "$app" $final_path/.rbenv/bin/rbenv install -s 2.5.1 || true - exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.1 || true - exec_as "$app" $final_path/.rbenv/versions/2.5.1/bin/ruby -v + exec_as "$app" $final_path/.rbenv/bin/rbenv install -s 2.5.3 || true + exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.3 || true + exec_as "$app" $final_path/.rbenv/versions/2.5.3/bin/ruby -v ) # Create symlink for ruby rm /usr/bin/ruby || true -ln -s $final_path/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby || true +ln -s $final_path/.rbenv/versions/2.5.3/bin/ruby /usr/bin/ruby || true # Preconfig CSS & JS # Install Mastodon ( sudo su - $app <<MCOMMANDS pushd ~/live -$final_path/.rbenv/versions/2.5.1/bin/gem install bundler +$final_path/.rbenv/versions/2.5.3/bin/gem install bundler if [ "$(lsb_release --codename --short)" == "jessie" ]; then - $final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --without development test + $final_path/.rbenv/versions/2.5.3/bin/bundle install --deployment --without development test else - $final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --force --without development test + $final_path/.rbenv/versions/2.5.3/bin/bundle install --deployment --force --without development test fi yarn install --pure-lockfile MCOMMANDS @@ -160,13 +160,13 @@ popd # Apply Mastodon upgrade ( pushd $final_path/live -RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails assets:clean -RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails assets:precompile +RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails assets:clean +RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails assets:precompile popd sudo su - $app <<COMMANDS pushd ~/live -RAILS_ENV=production $final_path/.rbenv/versions/2.5.1/bin/bundle exec rails db:migrate +RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails db:migrate COMMANDS ) #================================================= |
