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

34 views
Skip to first unread message

tom

unread,
Dec 22, 2015, 2:14:21 PM12/22/15
to Ruby on Rails: Talk
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"

Colin Law

unread,
Dec 22, 2015, 2:50:27 PM12/22/15
to Ruby on Rails: Talk
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

tom

unread,
Dec 22, 2015, 3:04:34 PM12/22/15
to Ruby on Rails: Talk
spot on - thx

Reply all
Reply to author
Forward
0 new messages