Seed database to create Owner role
This commit is contained in:
parent
efb0166d5b
commit
a6059396f8
1 changed files with 1 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ chown $app:$app "$config"
|
|||
|
||||
pushd "$install_dir/live"
|
||||
ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails db:migrate --quiet
|
||||
ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails db:seed --quiet
|
||||
ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:precompile --quiet
|
||||
# Create the first admin user
|
||||
ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=Owner
|
||||
|
|
|
|||
Loading…
Reference in a new issue