Skip to content

Commit

Permalink
debug message for deploy process ref #78
Browse files Browse the repository at this point in the history
  • Loading branch information
seeReadCode committed Apr 5, 2017
1 parent 52047f3 commit 73635f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def index
def deploy
@deployed_at = Rails.cache.fetch("deployed_at", expires_in: 5.minutes) do
pid = spawn("bin/deploy_self.sh #{Rails.env}")
Rails.logger.info("Deploying with pid #{pid.to_s}")
Process.detach(pid)
Time.now
end
Expand Down

0 comments on commit 73635f0

Please sign in to comment.