diff options
| author | yalh76 <yalh@yahoo.com> | 2019-05-12 20:32:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-12 20:32:33 +0200 |
| commit | c857d70f73587852cacc608a4e140b5b6b2b9e87 (patch) | |
| tree | 0cf3ea06df3f1b5f6206d51518f805a481417117 /scripts/install | |
| parent | 386c48a3389d0d817b87bccf43f312f75782646a (diff) | |
| parent | 0e6fcf1700e12399fea0bf3ba0c91a71f0bec9cc (diff) | |
| download | mastodon_ynh-c857d70f73587852cacc608a4e140b5b6b2b9e87.tar.gz mastodon_ynh-c857d70f73587852cacc608a4e140b5b6b2b9e87.tar.bz2 mastodon_ynh-c857d70f73587852cacc608a4e140b5b6b2b9e87.zip | |
Merge branch 'testing' into example_ynh
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/install b/scripts/install index 29058f6..ff03433 100644 --- a/scripts/install +++ b/scripts/install @@ -154,9 +154,9 @@ ynh_system_user_create --username=$app --home_dir=$final_path #================================================= ynh_script_progression --message="Installing Ruby..." --weight=424 -ynh_install_ruby --ruby_version=2.6.0 -/opt/rbenv/versions/2.6.0/bin/gem update --system -#/opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document +ynh_install_ruby --ruby_version=2.6.1 +/opt/rbenv/versions/2.6.1/bin/gem update --system +#/opt/rbenv/versions/2.6.1/bin/gem install bundler --no-document #================================================= # MODIFY A CONFIG FILE @@ -194,12 +194,12 @@ chown -R "$app": "$final_path" pushd "$final_path/live" ynh_use_nodejs - sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test + sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.1/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test sudo -u "$app" env PATH=$PATH yarn install --pure-lockfile sudo -u "$app" echo "SAFETY_ASSURED=1">> .env.production - sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails db:migrate --quiet - sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails assets:precompile --quiet - sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rake mastodon:webpush:generate_vapid_key > key.txt + sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.1/bin/bundle exec rails db:migrate --quiet + sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.1/bin/bundle exec rails assets:precompile --quiet + sudo -u "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.1/bin/bundle exec rake mastodon:webpush:generate_vapid_key > key.txt sudo -u "$app" env PATH=$PATH RAILS_ENV=production bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=admin > acc.txt popd |
