Browse Source

Merge pull request #9554 from p8/rails/iodine-set-workers

[rails] Detect workers for Iodine
Mike Smith 7 months ago
parent
commit
63e664ed1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Ruby/rails/rails-iodine.dockerfile

+ 1 - 1
frameworks/Ruby/rails/rails-iodine.dockerfile

@@ -24,4 +24,4 @@ ENV RAILS_ENV=production_postgresql
 ENV PORT=8080
 ENV PORT=8080
 ENV REDIS_URL=redis://localhost:6379/0
 ENV REDIS_URL=redis://localhost:6379/0
 CMD service redis-server start && \
 CMD service redis-server start && \
-    bundle exec iodine
+    bundle exec iodine -w $(ruby config/auto_tune.rb | grep -Eo '[0-9]+' | head -n 1)