Sha256: 47ee54cb7d68175f05b49349586b5c7cfeba9d48c7fa12d6d3611598abd7923e
Contents?: true
Size: 789 Bytes
Versions: 6
Compression:
Stored size: 789 Bytes
Contents
#!/bin/sh # script/console: Launch a console for the application. Optionally allow an # environment to be passed in to let the script handle the specific requirements # for connecting to a console for that environment. set -e cd "$(dirname "$0")/.." if [ -n "$1" ]; then # Use first argument as an environment name. Use this to decide how to connect # to the appropriate console. if [ "$1" = "production" ]; then heroku run ./bin/run console --app heroku-app-name elif [ "$1" = "staging" ]; then heroku run ./bin/run console --app heroku-app-name-staging else echo "Sorry, I don't know how to connect to the '$1' environment." exit 1 fi else # No argument provided, so just run the local console in the development # environment. ./bin/run console fi
Version data entries
6 entries across 6 versions & 1 rubygems