From 7672b23d0459b61d6b55f0ad7dd30ae4f719c55b Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 23 Jun 2014 14:23:53 -0700 Subject: added debugging note to DEVELOP.md --- DEVELOP.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'DEVELOP.md') diff --git a/DEVELOP.md b/DEVELOP.md index 0bc2031..64c8771 100644 --- a/DEVELOP.md +++ b/DEVELOP.md @@ -70,3 +70,18 @@ For example: login_as @user visit robot_path(@robot, :locale => nil) end + +## Debugging + +Sometimes bugs only show up when deployed to the live production server. Debugging can be tricky, +because the open source mod_passenger does not support debugger. You can't just run +`rails server` because HSTS records for your site will make most browsers require TLS. + +One solution is to temporarily modify the apache config to proxypass the TLS requests to rails: + + + ProxyPass / http://127.0.0.1:3000/ + ProxyPassReverse / http://127.0.0.1:3000/ + ProxyPreserveHost on + .... + \ No newline at end of file -- cgit v1.2.3