Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Update readme #104

Closed
wants to merge 5 commits into from
Closed

Update readme #104

wants to merge 5 commits into from

Conversation

lucasgomide
Copy link

Add nohup default #101 and add info about resque_dynamic_schedule to README.md

@dmarkow
Copy link
Collaborator

dmarkow commented Nov 2, 2015

Thank you, I'll take a deeper look when I have a little time.

  • You've effectively removed nohup entirely from the Capistrano V3 codebase (capistrano_integration.rb is the V2 code, where you added the nohup_cmd variable, but the V3 file capistrano-resque.rake has had all nohup code completely removed)
  • I'd strongly prefer to have separate pull requests for separate additions, whereas this one seems to lump a bunch of stuff together (nohup, dynamic schedule, extra env (which is already in Allow adding of arbitrary environment variables to start script #95), etc.)
  • There are some indentation issues (see comments on diff)

@@ -130,7 +131,7 @@ namespace :resque do
create_pid_path
pid = "#{fetch(:resque_pid_path)}/scheduler.pid"
within current_path do
execute :nohup, %{#{SSHKit.config.command_map[:rake]} RACK_ENV=#{rails_env} RAILS_ENV=#{rails_env} PIDFILE=#{pid} BACKGROUND=yes #{"VERBOSE=1 " if fetch(:resque_verbose)}MUTE=1 #{"DYNAMIC_SCHEDULE=yes " if fetch(:resque_dynamic_schedule)}#{"environment " if fetch(:resque_environment_task)}resque:scheduler #{output_redirection}}
execute %{cd #{release_path} && #{SSHKit.config.command_map[:rake]} #{fetch(:resque_extra_env)} RACK_ENV=#{rails_env} RAILS_ENV=#{rails_env} PIDFILE=#{pid} BACKGROUND=yes #{"VERBOSE=1 " if fetch(:resque_verbose)}MUTE=1 #{"DYNAMIC_SCHEDULE=yes " if fetch(:resque_dynamic_schedule)}#{"environment " if fetch(:resque_environment_task)}resque:scheduler #{output_redirection}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix indentation

@lucasgomide
Copy link
Author

Yeah, of course.

I'll create others pull requests from this, ok ? it's better

@lucasgomide lucasgomide closed this Nov 3, 2015
@lucasgomide lucasgomide deleted the update-readme branch November 3, 2015 09:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants