Pow: display development log and use Pry?

1k views Asked by At

I really like Pow, but I think I really miss an easy way to simply display the development log somehow and also interact with a binding.pry console. Isn't there an easy way to do this? I know about pry-remote, but this just is an unnecessary additional step.

2

There are 2 answers

3
csexton On

The solution I use is to tail the pow logs. Tailing log/development.log is close, but does not get everything that would normally go to standard out (i.e. what you would see if you ran rails server).

On a Mac, the pow logs live in:

~/Library/Logs/Pow/apps/

To help remember this, I just add an alias:

alias kaput="tail -f ~/Library/Logs/Pow/apps/*"

This will tail the logs of all the apps together, which I like. But if you want a specific log just use the name of the app instead of the wildcard.

It's called kaput because it A) shows the things that are putsd and B) I have a kapow command that restarts pow.

0
Adrien On