Created
December 30, 2014 14:51
-
-
Save raecoo/5a5cfd0b2852aecf6650 to your computer and use it in GitHub Desktop.
Use Byebug with Pow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .powenv | |
export BYEBUGPORT=3001 | |
# config/initializers/byebug.rb | |
if Rails.env.development? and ENV['BYEBUGPORT'] | |
require 'byebug' | |
Byebug.start_server 'localhost', ENV['BYEBUGPORT'].to_i | |
end | |
# restart Pow process | |
touch tmp/restart.txt | |
# connect with Byebug server | |
bundle exec byebug -R localhost:3001 |
try opening the website via pow as well, just hitting touch tmp/restart isn't enough to restart the server, you actually have to access it as well
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm having a really difficult time getting this to work for me. I'm getting connection refused errors. I'm running Rails 4.2, Ruby 2.1.5 and Byebug 4.05. Did you run into any gotchas like this? Any ideas? Thanks!