1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

add env PATH=$PATH

This commit is contained in:
yalh76 2019-03-20 04:28:13 +01:00
parent 5885b4cf7d
commit d903267166

View file

@ -202,15 +202,16 @@ chown -R "$app": "$final_path"
(
cd "$final_path/live"
su mastodon <<INSTALL
/opt/rbenv/versions/2.6.0/bin/gem update --system
/opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document
/opt/rbenv/versions/2.6.0/bin/bundle install \
ynh_use_nodejs
env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem update --system
env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document
env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/bundle install \
-j$(getconf _NPROCESSORS_ONLN) \
--deployment --without development test
yarn install --pure-lockfile
env PATH=$PATH yarn install --pure-lockfile
echo "SAFETY_ASSURED=1">> .env.production
RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails db:migrate --quiet
RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails assets:precompile --quiet
env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails db:migrate --quiet
env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails assets:precompile --quiet
INSTALL
)