diff options
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/install b/scripts/install index b9d9219..7e400d5 100644 --- a/scripts/install +++ b/scripts/install @@ -22,6 +22,8 @@ ynh_nodejs_install ynh_script_progression "Setting up source files..." ynh_setup_source --dest_dir="$install_dir/live" +# Download redis migration script +ynh_setup_source --source_id=redis_migration --dest_dir="$install_dir/live" chmod -R 775 "$install_dir" chmod o-rwx "$install_dir" @@ -76,7 +78,6 @@ ynh_config_add --template=".env.production.sample" --destination="$config" ynh_script_progression "Building app..." pushd "$install_dir/live" - # Building ruby packages gem update --system gem install bundler --no-document ynh_hide_warnings ynh_exec_as_app $ld_preload bin/bundle config deployment 'true' @@ -112,10 +113,11 @@ ynh_config_add --template=".env.production.sample" --destination="$config" pushd "$install_dir/live" ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/bundle exec rails db:migrate --quiet + ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/bundle exec rails db:seed --quiet ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/bundle exec rails assets:precompile --quiet # Create the first admin user - ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=Owner > /dev/null - ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/tootctl accounts approve "$admin" > /dev/null + ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=Owner + ynh_hide_warnings ynh_exec_as_app RAILS_ENV=production $ld_preload bin/tootctl accounts approve "$admin" popd #================================================= |
