stffn / declarative_authorization

An unmaintained authorization plugin for Rails. Please fork to support current versions of Rails
MIT License
1.24k stars 230 forks source link

Detached server difference? #168

Open archonic opened 11 years ago

archonic commented 11 years ago

When the server is attached, everything is fine. When I run the same exact code, environment and port with the "-d" flag to detach, I can't access a certain part of my application. I've demonstrated it 3 or 4 times, the code is identical and the only difference is the server running detached.

Has anyone else experienced this? It's as if declarative_authorization isn't initialized properly when the server is detached.

ghost commented 11 years ago

I am experiencing this issue right now. I'm trying to debug when I have time but as a workaround I'm just running my server as a background process using nohup. Something is definitely being handled differently when launching with the '-d' flag. Let me know if you have any luck!