From e76c53718df9425e3856636e3d64b87c14b19d72 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 25 Mar 2009 11:16:26 -0300 Subject: [PATCH] ActionItem985: don't start with pending migrations --- script/production | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/script/production b/script/production index ef404c2..480be76 100755 --- a/script/production +++ b/script/production @@ -6,6 +6,12 @@ ACTION=$1 shift do_start() { + if ! rake db:abort_if_pending_migrations; then + echo "========================================" + echo "There are pending migrations, please upgrade the database before starting the production server" + exit 1 + fi + ./script/ferret_server -e $RAILS_ENV start sleep 1 mongrel_rails cluster::start -- libgit2 0.21.2