Skip to content

Commit

Permalink
chore: fix run_app
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 2, 2024
1 parent 14b879c commit dc039e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@ source /home/ishocon/.bashrc

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"

function make_tmp_file() {
touch /tmp/ishocon-app
echo "$check_message"
}

function run_ruby() {
cd "/home/ishocon/webapp/$app_lang"
rbenv global 3.1.4
rm -rf /tmp/unicorn.pid
make_tmp_file
unicorn -c unicorn_config.rb
}

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 './unicorn.pid'
pid '/tmp/unicorn.pid'
listen 8080

0 comments on commit dc039e6

Please sign in to comment.