Startup Command: Bundle Exec Sidekiq

Hi,

I’ve been trying to adjust the startup command to run sidekiq after every deploy and for some reason is not working.

Here is the startup command:
bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}; bundle exec sidekiq

And here is the render.yaml file:
services:

Let’s create our background worker

  • type: worker
    name: sidekiq-worker
    env: ruby
    region: ohio
    buildCommand: bundle install
    startCommand: bundle exec sidekiq
    autoDeploy: false
    envVars:
    • key: REDIS_URL
      fromService:
      type: redis
      name: sidekiq-redis
      property: connectionString
  • type: web # this example Rails service comes from Getting Started with Ruby on Rails on Render | Render
    name: mysite
    runtime: ruby
    buildCommand: “./bin/render-build.sh”
    startCommand: “bundle exec puma -C config/puma.rb”
    envVars:
    - key: DATABASE_URL
    fromDatabase:
    name: mysite
    property: connectionString
    - key: RAILS_MASTER_KEY
    sync: false
    - key: REDIS_URL # this must match the name of the environment variable used in production.rb
    fromService:
    type: redis
    name: cache
    property: connectionString

Any advice?

Thanks!

Hi,

The “startup command” you mention and what is shown in the render.yaml appears to be different.

The render.yaml looks better with the services separated. Are you able to share the logs/error message which may point us to the issue.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.