diff options
author | Azul <azul@leap.se> | 2014-07-01 09:26:54 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-07-01 09:26:54 +0200 |
commit | b3c23c534f21b0a920815734637aff46816f7039 (patch) | |
tree | 77b332962db5d24afcc6de897a63dd5039a10b0d /DEVELOP.md | |
parent | 728d6d3985126c2890638bb2ee24020fa0e36a80 (diff) | |
parent | 470bc1e35f22c1fe5813a1754e52b3fbc2bb951b (diff) |
Merge tag '0.5.3'
Diffstat (limited 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 |