1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/redmine_ynh.git synced 2024-09-03 20:16:16 +02:00

Update install

This commit is contained in:
ericgaspar 2021-08-16 11:11:54 +02:00
parent 66cbd652e4
commit 9a8f457476
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -129,14 +129,20 @@ cp -a ../conf/configuration.example.yml $final_path/config/configuration.yml
#================================================= #=================================================
ynh_print_info "Compile Redmine..." 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 pushd $final_path
gem install bundler ynh_exec_as $app bundle install
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 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 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 popd
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD
#================================================= #=================================================