Skip to content

Commit

Permalink
Add support for restarting the application server using bake.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Feb 3, 2020
1 parent 4f4bd23 commit 0612bf3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions falcon.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "async-websocket", "~> 0.12.0"
spec.add_development_dependency "async-process", "~> 1.1"

spec.add_development_dependency "bake"
spec.add_development_dependency "covered", "~> 0.10"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rspec", "~> 3.6"
Expand Down
2 changes: 2 additions & 0 deletions lib/falcon/command/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
require 'samovar'
require 'async'
require 'json'

require 'async/io/stream'
require 'async/io/unix_endpoint'

module Falcon
Expand Down
6 changes: 6 additions & 0 deletions recipes/falcon/supervisor.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

recipe :restart, description: 'Restart the application server via the supervisor.' do
require_relative '../../lib/falcon/command/supervisor'

Falcon::Command::Supervisor["restart"].call
end

0 comments on commit 0612bf3

Please sign in to comment.