Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
fix: Write pid file before rails init
Browse files Browse the repository at this point in the history
  • Loading branch information
ferreira-mev committed May 25, 2022
1 parent cb378f4 commit 07e1119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pipefymessage
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ module PipefyMessage
method_option :rails, aliases: "-R", type: :boolean, desc: "Load Rails", default: false
method_option :pidfile, aliases: "-P", type: :string, desc: "Path to pidfile"
def start
PipefyMessage::Runner.instance.initialize_rails if options[:rails]
PipefyMessage::Runner.instance.write_pid(options) if options[:pidfile]
PipefyMessage::Runner.instance.initialize_rails if options[:rails]
PipefyMessage::Runner.instance.run(options[:worker]) if options[:worker]
end
end
Expand Down

0 comments on commit 07e1119

Please sign in to comment.