diff --git a/manifests/init.pp b/manifests/init.pp index bf38161..8c586c8 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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', ],