1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/redmine_ynh.git synced 2024-09-03 20:16:16 +02:00
This commit is contained in:
ericgaspar 2022-04-12 23:04:01 +02:00
parent bbd2e56f6b
commit 12e24979dd
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 3 additions and 7 deletions

View file

@ -120,12 +120,10 @@ ynh_add_nginx_config
ynh_script_progression --message="Adding a configuration file..." ynh_script_progression --message="Adding a configuration file..."
ynh_add_config --template="../conf/database.example.yml" --destination="$final_path/config/database.yml" ynh_add_config --template="../conf/database.example.yml" --destination="$final_path/config/database.yml"
chmod 400 "$final_path/config/database.yml" chmod 400 "$final_path/config/database.yml"
chown $app:$app "$final_path/config/database.yml" chown $app:$app "$final_path/config/database.yml"
ynh_add_config --template="../conf/configuration.yml.example" --destination="$final_path/config/configuration.yml" ynh_add_config --template="../conf/configuration.yml.example" --destination="$final_path/config/configuration.yml"
chmod 400 "$final_path/config/configuration.yml" chmod 400 "$final_path/config/configuration.yml"
chown $app:$app "$final_path/config/configuration.yml" chown $app:$app "$final_path/config/configuration.yml"
@ -138,15 +136,14 @@ pushd $final_path
ynh_use_ruby ynh_use_ruby
ynh_gem update --system --no-document ynh_gem update --system --no-document
ynh_gem install bundler passenger --no-document ynh_gem install bundler passenger --no-document
bundle config set --local without 'development test' bundle config set --local without 'development test rmagick'
bundle install bundle install
bundle install --without development test rmagick
ynh_exec_warn_less bundle exec rake generate_secret_token RAILS_ENV=production ynh_exec_warn_less bundle exec rake generate_secret_token RAILS_ENV=production
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
#ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production #ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production
popd popd
ynh_install_app_dependencies $pkg_dependencies #ynh_install_app_dependencies $pkg_dependencies
chmod 750 "$final_path/public" chmod 750 "$final_path/public"
chmod -R o-rwx "$final_path/public" chmod -R o-rwx "$final_path/public"

View file

@ -135,9 +135,8 @@ pushd $final_path
ynh_use_ruby ynh_use_ruby
ynh_gem update --system --no-document ynh_gem update --system --no-document
ynh_gem install bundler passenger --no-document ynh_gem install bundler passenger --no-document
bundle config set --local without 'development test' bundle config set --local without 'development test rmagick'
bundle install bundle install
bundle install --without development test rmagick
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
popd popd