diff options
| author | anmol <github@datamol.org> | 2019-01-09 17:12:23 +0530 |
|---|---|---|
| committer | anmol <github@datamol.org> | 2019-01-09 17:12:23 +0530 |
| commit | 2d8b197984513e0a1c8a5f45b4102fb2d2d44551 (patch) | |
| tree | c829ae805b459646904ba529114fcba9188c26d3 | |
| parent | d4ddcf6642acf848fbf9b75ff1f04c93fb7e79fa (diff) | |
| download | mastodon_ynh-2d8b197984513e0a1c8a5f45b4102fb2d2d44551.tar.gz mastodon_ynh-2d8b197984513e0a1c8a5f45b4102fb2d2d44551.tar.bz2 mastodon_ynh-2d8b197984513e0a1c8a5f45b4102fb2d2d44551.zip | |
Fix
| -rw-r--r-- | scripts/install | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/install b/scripts/install index cd4588c..ce098a9 100644 --- a/scripts/install +++ b/scripts/install @@ -153,9 +153,10 @@ chown -R "$app": "$final_path" ( cd $final_path/.rbenv src/configure && make -C src - echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc - echo 'eval "$(rbenv init -)"' >> ~/.bashrc - exec bash + + echo "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\" +eval \"\$(rbenv init -)\"" > $final_path/.profile + echo "export PATH=\"$final_path/.rbenv/bin:$final_path/live/bin:\$PATH\"" > $final_path/.bashrc ) # Install ruby-build @@ -206,10 +207,11 @@ chown -R "$app": "$final_path" cd "$final_path/live" su mastodon <<INSTALL $final_path/.rbenv/versions/2.5.3/bin/gem install bundler --no-ri --no-rdoc - $final_path/live/bin/bundle install \ - -j$(getconf _NPROCESSORS_ONLN) \ + bundle install \ + -j$(getconf _NPROCESSORS_ONLN) \ --deployment --without development test yarn install --pure-lockfile + echo "SAFETY_ASSURED=1">> .env.production RAILS_ENV=production $final_path/live/bin/bundle exec rails db:migrate --quiet RAILS_ENV=production $final_path/live/bin/bundle exec rails assets:precompile --quiet INSTALL |
