Skip to content

Instantly share code, notes, and snippets.

@igaiga
Created August 15, 2021 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igaiga/8a8bb5f185073c0a7b14eea0c28087c0 to your computer and use it in GitHub Desktop.
Save igaiga/8a8bb5f185073c0a7b14eea0c28087c0 to your computer and use it in GitHub Desktop.

Unicorn

起動設定ファイルを /var/tdiary/tdiary-core/unicorn.conf へ配置

/var/tdiary/tdiary-core/unicorn.conf

worker_processes 4
listen 8080, :tcp_nopush => true

pid "unicorn.pid"

stderr_path "log/unicorn.stderr.log"
stdout_path "log/unicorn.stdout.log"

preload_app true
GC.respond_to?(:copy_on_write_friendly=) and GC.copy_on_write_friendly = true

ログフォルダ作成

  • $ mkdir /var/tdiary/tdiary-core/log/

単体起動テスト

  • $ cd /var/tdiary/tdiary-core
  • $ bundle exec unicorn -c unicorn.conf エラーがでないことを確認
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment