LoginSignup
12
12

More than 5 years have passed since last update.

お手軽にsinatraをdaemonizeする

Posted at

お手軽なsinatraでお手軽なdeamonize

sinatraかわいいよsinatra。

内部で利用するような簡単なアプリとか作るのにいい感じですね。

お手軽なツールで面倒な設定とかしたくないので

$ nohup ruby server.rb >> path/to/logfile 2>&1 &

で十分な場合も多いんじゃないでしょうか。

余談ですがsinatraはdevelopmentモードだとリモートからのアクセスを受け付けないみたいです。
公開する場合はruby server.rb -e productionで起動してやればOKです。

12
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12