Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Default environment to staging. #14

Merged
merged 1 commit into from

2 participants

@MarkBennett

This brings the environment settings in to line with pave and the modified plow in the sentinel project. From now on the environment is assumed to be staging unless otherwise specified.

@mm53bar mm53bar merged commit a7f6bb3 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2013
  1. @MarkBennett
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 5 deletions.
  1. +8 −5 bin/plow
View
13 bin/plow
@@ -66,13 +66,16 @@ bail() {
}
if [ ! $ENVIRONMENT ]; then
- bail "No environment specified"
-else
- [[ -f .env.$ENVIRONMENT ]] || bail "no .env.$ENVIRONMENT found"
- source .env.$ENVIRONMENT
- mkdir -p .plow && cat .env.$ENVIRONMENT > .plow/plow.sh
+ echo "Assuming staging environment..."
+ ENVIRONMENT="staging"
fi
+ENV_FILE=.env.$ENVIRONMENT
+[[ -f $ENV_FILE ]] || bail "no $ENV_FILE found"
+source $ENV_FILE
+
+mkdir -p .plow && cat $ENV_FILE > .plow/plow.sh
+
if [ $SERVER ]; then
SERVERS[${#SERVERS[@]}]=$SERVER
else
Something went wrong with that request. Please try again.