After closing the ssh terminal, the thin server is down

Posted by Keating Wang on Super User See other posts from Super User or by Keating Wang
Published on 2012-07-06T08:38:03Z Indexed on 2012/07/06 9:18 UTC
Read the original article Hit count: 291

I have a rails project run on the thin server(1.3.1) on a ubuntu server. I ssh to the server and start thin with command 'thin start -C config/thin.yml', following the thin.yml,

port: 3000 log: log/thin.log timeout: 30 chdir: /home/byht/56platform/dev/tracker environment: production servers: 1 daemonize: true

After thin starts successfully, I visit the project and it works well. Then, I close the terminal, I can also visit the pages that have been visited, but when I visit the pages that not been visited before closing ssh terminal, a "500" error appears on the page. I didn't find the error messages in the log file.

I have tried start thin with nohup and sudo, but they are useless.

I sign in the ubuntu server locally, then the problem disappears. But I need sign in the server to stat thin with ssh when I'm home.

© Super User or respective owner

Related posts about ubuntu

Related posts about ubuntu-11.10