Skip to content

Commit

Permalink
Use stage name as rails_env
Browse files Browse the repository at this point in the history
In multistage environment use stage name as environment
  • Loading branch information
bronislav committed Sep 25, 2014
1 parent 3bbe3fd commit 481ef1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano-db-tasks/dbtasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require File.expand_path("#{File.dirname(__FILE__)}/asset")

set :local_rails_env, ENV['RAILS_ENV'] || 'development' unless fetch(:local_rails_env)
set :rails_env, 'production' unless fetch(:rails_env)
set :rails_env, fetch(:stage) || 'production' unless fetch(:rails_env)
set :db_local_clean, false unless fetch(:db_local_clean)
set :assets_dir, 'system' unless fetch(:assets_dir)
set :local_assets_dir, 'public' unless fetch(:local_assets_dir)
Expand Down

0 comments on commit 481ef1a

Please sign in to comment.