This commit is contained in:
Antonio J. Delgado 2023-11-28 18:51:16 +02:00
parent 03bdc7de2d
commit bbd4074f43

View file

@ -262,8 +262,9 @@ class mastodon (
}
# RAILS_ENV=production rails db:setup
exec { 'db_setup':
command => "rails db:setup > ${mastodon_home}/db_setup_done",
command => "${mastodon_home}/live/bin/rails db:setup > ${mastodon_home}/db_setup_done",
creates => "${mastodon_home}/db_setup_done",
path => "${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
environment => [
'RAILS_ENV=production',
],