Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=sidekiq
- After=syslog.target network.target
- [Service]
- Type=simple
- WorkingDirectory=/var/www/my_app/code
- ExecStart=/bin/bash -lc 'bundle exec sidekiq -e production -C config/sidekiq.yml'
- User=deploy
- Group=deploy
- UMask=0002
- # if we crash, restart
- RestartSec=4
- #Restart=on-failure
- Restart=always
- # output goes to /var/log/syslog
- StandardOutput=syslog
- StandardError=syslog
- # This will default to "bundler" if we don't specify it
- SyslogIdentifier=sidekiq
- [Install]
- WantedBy=multi-user.target
- ---
- :verbose: true
- :concurrency: 4
- :pidfile: tmp/pids/sidekiq.pid
- :queues:
- - [critical, 2]
- - default
- - low
- production:
- :concurrency: 15
- Sidekiq.configure_server do |config|
- config.redis = { url: "redis://#{ENV['SITE']}:6379/0", password: ENV['REDIS_PWD'] }
- end
- Sidekiq.configure_client do |config|
- config.redis = { url: "redis://#{ENV['SITE']}:6379/0", password: ENV['REDIS_PWD'] }
- end
- Dec 18 00:13:39 jjflo systemd[1]: Started sidekiq.
- Dec 18 00:13:48 jjflo sidekiq[8159]: Cannot load `Rails.application.database_configuration`:
- Dec 18 00:13:48 jjflo sidekiq[8159]: key not found: "MY_APP_DATABASE_PASSWORD"
- cd /var/www/my_app/code
- su - sesame
- /bin/bash -lc 'bundle exec sidekiq -e production -C config/sidekiq.yml'
Add Comment
Please, Sign In to add comment