Skip to content

Commit

Permalink
ruby: remove pid file before running unicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 2, 2024
1 parent 2650939 commit 8a6b65f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ echo "app_lang: $app_lang"

function run_ruby() {
rbenv global 3.1.4
rm -rf /home/ishocon/webapp/ruby/unicorn.pid
unicorn -c unicorn_config.rb
echo "app_lang: $app_lang"
echo "app_lang: $app_lang"

function make_tmp_file() {
touch /tmp/ishocon-app
Expand Down
2 changes: 1 addition & 1 deletion webapp/ruby/unicorn_config.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
worker_processes 16
preload_app true
pid '/tmp/unicorn.pid'
pid './unicorn.pid'
listen 8080

0 comments on commit 8a6b65f

Please sign in to comment.