ysbaddaden / prax

Rack proxy server for development
http://ysbaddaden.github.io/prax/
Other
475 stars 49 forks source link

Prax troubleshooting #127

Closed ybart closed 6 years ago

ybart commented 9 years ago

prax is awesome when it works but can be quite troublesome to setup when everything does not work as expected.

I run into the following issue, but I found troubleshooting quite hard.

I wanted to stop every instance of my app, and to be sure I used prax uninstall to do this.

As you can see, there are many potential point of failure and these might be hard to find.

I would like prax to start logging earlier, especially when it can't start. It would have been useful to find that bind failed early just by checking ~/.prax/logs. I would also be happy with prax start displaying information on startup beside the following :

RVM loading: /home/ybart/.rvm/environments/ruby-2.2.2`
Starting prax in the background.`

It could be either the startup log we can see using opt/prax/bin/prax start -f or a message indicating that logs are available in ~/.prax/_logs/prax.log and ~/.prax/_logs/myapp.log.

In the meantime, I could create a Troubleshooting Wiki page that would be referenced in the README listing the issues I identified.

What do you think ? Does it seems like a good idea ?

ysbaddaden commented 9 years ago

I'm sorry that Prax is so unfriendly when it breaks —and it easily breaks under many conditions, most generally related to version managers —I wish the ruby community would get rid of them.

Prax was merely a toy project for my own use. It attracted a lot of users, yet I never ironed out "details" like debug and troubleshooting. My bad. If you want to contribute either on the wiki or the code, please do, this will be very welcomed by everyone, and me first!

ybart commented 9 years ago

It's very nice ttah you contributed this project to the community. I just would like to contribute a Wiki and a PR with a simple README edit to the Wiki at the moment.

ysbaddaden commented 9 years ago

Also, I've been working on a Crystal port of Prax for some months now, which I use daily (I don't use the Ruby version anymore), where I'm trying to address the troubleshooting parts with wiki documentation and better logging.

I'll eventually release DEB/RPM packages that should just work —except for the version managers, unless I decide to add support for them when they are installed in standard locations.