Search code examples
ruby-on-railsvpsthin

How to run thin in the vps after the terminal window is closed


Hey guys After several weeks of local testing, I'm now setting up a VPS, and try to run rails on it. At this point, I can open up a Terminal session and ssh to the VPS, run the thin start, then I the server is running ok, But as soon as I closed the terminal the thin is down.

How can I make thin server running in the VPS all the time?

another question how to change from test mode to production mode in rails.

Thanks


Solution

  • Demonize thin, run it with -d flag.

    thin -d