Procfile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ###############################
  2. # DEVELOPMENT #
  3. ###############################
  4. # Procfile for development using the new threaded worker (scheduler, twitter stream and delayed job)
  5. web: bundle exec rails server -p ${PORT-3000} -b ${IP-0.0.0.0}
  6. jobs: bundle exec rails runner bin/threaded.rb
  7. # Old version with separate processes (use this if you have issues with the threaded version)
  8. # web: bundle exec rails server
  9. # schedule: bundle exec rails runner bin/schedule.rb
  10. # twitter: bundle exec rails runner bin/twitter_stream.rb
  11. # dj: bundle exec script/delayed_job run
  12. ###############################
  13. # PRODUCTION #
  14. ###############################
  15. # You need to copy or link config/unicorn.rb.example to config/unicorn.rb for both production versions.
  16. # Have a look at the deployment guides, if you want to set up huginn on your server:
  17. # https://github.com/huginn/huginn/doc
  18. # Using the threaded worker (consumes less RAM but can run slower)
  19. # web: bundle exec unicorn -c config/unicorn.rb
  20. # jobs: bundle exec rails runner bin/threaded.rb
  21. # Old version with separate processes (use this if you have issues with the threaded version)
  22. # web: bundle exec unicorn -c config/unicorn.rb
  23. # schedule: bundle exec rails runner bin/schedule.rb
  24. # twitter: bundle exec rails runner bin/twitter_stream.rb
  25. # dj: bundle exec script/delayed_job run
  26. ###############################
  27. # Multiple DelayedJob workers #
  28. ###############################
  29. # Per default Huginn can just run one agent at a time. Using a lot of agents or calling slow
  30. # external services frequently might require more DelayedJob workers (an indicator for this is
  31. # a backlog in your 'Job Management' page).
  32. # Every uncommented line starts an additional DelayedJob worker. This works for development, production
  33. # and for the threaded and separate worker processes. Keep in mind one worker needs about 300MB of RAM.
  34. #
  35. #dj2: bundle exec script/delayed_job -i 2 run
  36. #dj3: bundle exec script/delayed_job -i 3 run
  37. #dj4: bundle exec script/delayed_job -i 4 run
  38. #dj5: bundle exec script/delayed_job -i 5 run
  39. #dj6: bundle exec script/delayed_job -i 6 run
  40. #dj7: bundle exec script/delayed_job -i 7 run
  41. #dj8: bundle exec script/delayed_job -i 8 run
  42. #dj9: bundle exec script/delayed_job -i 9 run
  43. #dj10: bundle exec script/delayed_job -i 10 run