This commit is contained in:
Antonio J. Delgado 2023-11-28 18:48:39 +02:00
parent 6fd0b271e2
commit d29fbf4c35

View file

@ -261,6 +261,18 @@ class mastodon (
],
}
# RAILS_ENV=production rails db:setup
exec { 'db_setup':
command => "rails db:setup > ${mastodon_home}/db_setup_done",
creates => "${mastodon_home}/db_setup_done",
environment => [
'RAILS_ENV=production',
],
user => $mastodon_user,
group => $mastodon_group,
pwd => "${mastodon_home}/live",
timeout => 0,
require => File["${mastodon_home}/live/.env.production"],
}
# db:create
# RAILS_ENV=production rails assets:precompile
}