Help: NoMethodError: undefined method `set' for main:Object during cap deploy

NoMethodError: undefined method `set’ for main:Object

/apps/app_a/production/releases/20151222191024/config/environments/production.rb:2:in

production.rb

set :sidekiq_role, :app
set :sidekiq_config, “#{current_path}/config/sidekiq.yml”
set :sidekiq_env, ‘production’

set :deploy_to, “/apps/app_a/production”
set :rails_env, “production”
set :stage, ‘production’
set :branch, “master”

set :whenever_environment, ‘production’
set :whenever_identifier, “production”

On 22 December 2015 at 19:13, tom [email protected] wrote:

set :sidekiq_env, ‘production’

set :deploy_to, “/apps/app_a/production”
set :rails_env, “production”
set :stage, ‘production’
set :branch, “master”

set :whenever_environment, ‘production’
set :whenever_identifier, “production”

I think those should be in deploy.rb not production.rb. Though I
think some could be in deploy/production.rb rather than
environments/production.rb which may be where the confusion has
arisen.

Colin

spot on - thx