8000 GitHub - ysKey2/unicorn_script
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ysKey2/unicorn_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unicorn Script

  • 対象:CapistranoにてDeployしている人向け

使い方(CeontOS6/AmazonLinux)

  • unicornファイルのディレクトリやユーザーの環境変数を適宜変更
  • 上記unicornファイルをサーバー上の/etc/init.d/配下に配置
  • chmod 755で実行権限付与
  • rootユーザーでchkconfig unicorn onで自動起動設定完了
  • 以下のようにも起動処理/停止可能に
service unicorn start
service unicorn stop

使い方(CeontOS7)

  • unicornファイルのディレクトリやユーザーの環境変数を適宜変更
  • 上記unicornファイルをサーバー上の/etc/init.d/配下に配置
  • chmod 755で実行権限付与
  • /usr/lib/systemd/system配下にunicorn.serviceのファイルを配置
  • systemctl daemon-reload実行
  • systemctl enable unicorn.serviceで自動起動設定

memo

  • ちゃんと試しきれてないのでご利用は自己責任でお願いします
  • 使う際はご自身の環境に合ったように自由にカスタマイズしてみて下さい
  • sidekiq用のも仮で用意してみました
    • こちらはpidfileの値がcapistrano-sidekiqの仕様に依存してるのでそれ用に対応

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0