Remove default fallback on staging for the deploy destination

Explicit > implicit
This commit is contained in:
gregoirenovel 2018-09-20 11:28:58 +02:00
parent ec545758c3
commit fd13f9dbb2
2 changed files with 1 additions and 2 deletions

View file

@ -104,7 +104,7 @@ jobs:
- deploy: - deploy:
command: | command: |
if [ "${CIRCLE_BRANCH}" == "dev" ]; then if [ "${CIRCLE_BRANCH}" == "dev" ]; then
bundle exec rake deploy bundle exec rake deploy to=staging
fi fi
if [ "${CIRCLE_BRANCH}" == "master" ]; then if [ "${CIRCLE_BRANCH}" == "master" ]; then

View file

@ -10,7 +10,6 @@ require 'mina/rbenv' # for rbenv support. (http://rbenv.org)
# repository - Git repo to clone from. (needed by mina/git) # repository - Git repo to clone from. (needed by mina/git)
# branch - Branch name to deploy. (needed by mina/git) # branch - Branch name to deploy. (needed by mina/git)
ENV['to'] ||= "staging"
if !["staging", "production"].include?(ENV['to']) if !["staging", "production"].include?(ENV['to'])
raise "Bad to=#{+ENV['to']}" raise "Bad to=#{+ENV['to']}"
end end