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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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