From d4ddcf6642acf848fbf9b75ff1f04c93fb7e79fa Mon Sep 17 00:00:00 2001 From: anmol Date: Wed, 9 Jan 2019 17:03:07 +0530 Subject: [PATCH] Fix --- scripts/install | 13 +++---------- 1 file 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