diff options
author | elijah <elijah@riseup.net> | 2014-06-23 14:23:53 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-06-23 14:23:53 -0700 |
commit | 7672b23d0459b61d6b55f0ad7dd30ae4f719c55b (patch) | |
tree | 1bb42ffa0a96dbf52a7b3a0365a45917c7ebf32a | |
parent | 03b56bc0d94558ad7ff8b82e17314511a40ed16a (diff) |
added debugging note to DEVELOP.md
-rw-r--r-- | DEVELOP.md | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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: + + <virtualhost *:443> + ProxyPass / http://127.0.0.1:3000/ + ProxyPassReverse / http://127.0.0.1:3000/ + ProxyPreserveHost on + .... + </virtualhost>
\ No newline at end of file |