Commit 4408f0bfbd3f6c77a7c35757bca92ae1474231ce
1 parent
8d358ac8
Exists in
master
and in
66 other branches
noosfero: migrate database before anything else
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
cookbooks/noosfero/recipes/default.rb
| ... | ... | @@ -30,6 +30,12 @@ execute 'noosfero:schema' do |
| 30 | 30 | notifies :restart, 'service[noosfero]' |
| 31 | 31 | end |
| 32 | 32 | |
| 33 | +execute 'noosfero:migrate' do | |
| 34 | + command 'RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate' | |
| 35 | + cwd '/usr/lib/noosfero' | |
| 36 | + user 'noosfero' | |
| 37 | +end | |
| 38 | + | |
| 33 | 39 | package 'noosfero-spb' do |
| 34 | 40 | action :upgrade |
| 35 | 41 | end | ... | ... |