Skip to content

Instantly share code, notes, and snippets.

@STAR-ZERO
Created March 10, 2013 14:59
Show Gist options
  • Select an option

  • Save STAR-ZERO/5128887 to your computer and use it in GitHub Desktop.

Select an option

Save STAR-ZERO/5128887 to your computer and use it in GitHub Desktop.
thinの設定、起動、停止

thinの設定、起動、停止

設定ファイル

config/thin.ymlを作成

pid: tmp/pids/thin.pid
log: log/thin.log
servers: 1
port: 3000
daemonize: true
environment: production
user: user
group: group

起動

$ bundle exec thin start -C config/thin.yml

停止

$ bundle exec thin stop -C config/thin.yml

再起動

$ bundle exec thin restart -C config/thin.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment