You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm doing things wrong, but I have defined some custom God notifier plugins, and I need to load those dependencies before starting god for the first time.
But then, when I try to release a new app version (I'm deploying with Capistrano), my flow is to update God config using god load. Problem, this causes crashes when I require modules that extend ActiveSupport::Concern and have included blocks with the following error
Cannot define multiple 'included' blocks for a Concern
Here is a sample of my God file (Note that <%= %> are compiled before execution)
desc "Restart god's child processes"
task :restart do
on roles(fetch(:god_roles)) do
within release_path do
with RAILS_ENV: fetch(:rails_env) do
if god_is_running?
execute :bundle, 'exec god load config/god/god.rb'
execute :bundle, 'exec god restart'
else
start_god
end
end
end
end
end
The execute :bundle, 'exec god load config/god/god.rb' command
The text was updated successfully, but these errors were encountered:
Maybe I'm doing things wrong, but I have defined some custom God notifier plugins, and I need to load those dependencies before starting god for the first time.
But then, when I try to release a new app version (I'm deploying with Capistrano), my flow is to update God config using
god load
. Problem, this causes crashes when I require modules that extendActiveSupport::Concern
and haveincluded
blocks with the following errorHere is a sample of my God file (Note that
<%= %>
are compiled before execution)My restart task with Capistrano
The
execute :bundle, 'exec god load config/god/god.rb'
commandThe text was updated successfully, but these errors were encountered: