From 9a8f4574768d46599ac26ae385511fdff7bf3c0e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 16 Aug 2021 11:11:54 +0200 Subject: [PATCH] Update install --- scripts/install | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 5195cfb..2533342 100644 --- a/scripts/install +++ b/scripts/install @@ -129,14 +129,20 @@ cp -a ../conf/configuration.example.yml $final_path/config/configuration.yml #================================================= ynh_print_info "Compile Redmine..." +# pushd $final_path +# gem install bundler +# ynh_exec_as $app bundle install --without development test --path vendor/bundle +# ynh_exec_as $app bundle exec rake generate_secret_token +# ynh_exec_as $app RAILS_ENV=production bundle exec rake db:migrate +# ynh_exec_as $app RAILS_ENV=production REDMINE_LANG=en bundle exec rake redmine:load_default_data +# popd + pushd $final_path - gem install bundler - ynh_exec_as $app bundle install --without development test --path vendor/bundle + ynh_exec_as $app bundle install ynh_exec_as $app bundle exec rake generate_secret_token ynh_exec_as $app RAILS_ENV=production bundle exec rake db:migrate - ynh_exec_as $app RAILS_ENV=production REDMINE_LANG=en bundle exec rake redmine:load_default_data + ynh_exec_as $app RAILS_ENV=production bundle exec rake redmine:load_default_data popd - #================================================= # SETUP SYSTEMD #=================================================