setup db
This commit is contained in:
parent
6fd0b271e2
commit
d29fbf4c35
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue