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 22:30:25 +02:00
parent 4fd7749396
commit 4d0250cebf
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 8 additions and 11 deletions

View file

@ -145,7 +145,6 @@ pushd $final_path
ynh_gem install bundler passenger --no-document ynh_gem install bundler passenger --no-document
bundle config set --local without 'development test rmagick' 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

View file

@ -102,7 +102,6 @@ pushd $final_path
ynh_gem install bundler passenger --no-document ynh_gem install bundler passenger --no-document
bundle config set --local without 'development test rmagick' bundle config set --local without 'development test rmagick'
bundle install bundle install
#bundle install --without development test rmagick
popd popd
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies

View file

@ -86,7 +86,7 @@ then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/database.yml $final_path/config/configuration.yml $final_path/config/environment.rb"
fi fi
mkdir -p "$final_path/files" "$final_path/log" "$final_path/tmp" "$final_path/public/plugin_assets" mkdir -p "$final_path/files" "$final_path/log" "$final_path/tmp" "$final_path/public/plugin_assets"
@ -117,17 +117,17 @@ ynh_install_ruby --ruby_version=$ruby_version
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION
#================================================= #=================================================
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"
#================================================= #=================================================
# BUILD APP # BUILD APP
@ -140,7 +140,6 @@ pushd $final_path
ynh_gem install bundler passenger --no-document ynh_gem install bundler passenger --no-document
bundle config set --local without 'development test rmagick' 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