diff options
| author | anmol <github@datamol.org> | 2019-01-09 17:03:07 +0530 |
|---|---|---|
| committer | anmol <github@datamol.org> | 2019-01-09 17:03:07 +0530 |
| commit | d4ddcf6642acf848fbf9b75ff1f04c93fb7e79fa (patch) | |
| tree | f06f357e0804433bfd1482c25e74687b5b3f69d0 /scripts/install | |
| parent | 047dbcf208fee3486ccd451c21929c9bdff9c3ff (diff) | |
| download | mastodon_ynh-d4ddcf6642acf848fbf9b75ff1f04c93fb7e79fa.tar.gz mastodon_ynh-d4ddcf6642acf848fbf9b75ff1f04c93fb7e79fa.tar.bz2 mastodon_ynh-d4ddcf6642acf848fbf9b75ff1f04c93fb7e79fa.zip | |
Fix
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/scripts/install b/scripts/install index ab44f3a..cd4588c 100644 --- a/scripts/install +++ b/scripts/install @@ -153,10 +153,9 @@ chown -R "$app": "$final_path" ( cd $final_path/.rbenv src/configure && make -C src - - 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 + echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc + echo 'eval "$(rbenv init -)"' >> ~/.bashrc + exec bash ) # Install ruby-build @@ -170,11 +169,6 @@ eval \"\$(rbenv init -)\"" > $final_path/.profile rm /usr/bin/ruby || true ln -s $final_path/.rbenv/versions/2.5.3/bin/ruby /usr/bin/ruby || true -# Yarn install on root -pushd $final_path/live -yarn install --pure-lockfile -popd - # Adjust Mastodon config cp -a $final_path/live/.env.production.sample $final_path/live/.env.production @@ -216,7 +210,6 @@ chown -R "$app": "$final_path" -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 |
