From d5309c0dbbc357577ddf85f830a1f56744b05120 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sun, 1 Sep 2013 21:45:11 +0300 Subject: [PATCH] give db to rails env during precompile assets --- entrydns.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/entrydns.spec b/entrydns.spec index 470deb0..cd75c00 100644 --- a/entrydns.spec +++ b/entrydns.spec @@ -53,6 +53,7 @@ cp config/database.mysql.sample.yml config/database.yml bundle install --deployment --without development test # pre-compile assets +bundle exec rake db:create db:migrate bundle exec rake RAILS_ENV=production assets:precompile # fix wrong sheebang for unicorn