script/build in crowdblog-0.0.1 vs script/build in crowdblog-0.0.2
- old
+ new
@@ -14,12 +14,16 @@
which bundle || gem install bundler
echo "-- Install Gem dependencies"
bundle install
+echo "-- Migrations"
+# both rake db:migrates needed
+bundle exec rake db:migrate
+RAILS_ENV=test bundle exec rake db:migrate
+
echo "-- Build project"
export DISPLAY=:0.0
-RAILS_ENV=test rake db:migrate
bundle exec rake
EXIT_CODE=$?
#echo "-- METRICS"
#which metrical || gem install metrical