Open silva96 opened 5 years ago
adding daemonize option in the initializers/sneakers.rb
does the trick
Sneakers.configure(
amqp: "amqp://#{ENV['RABBITMQ_USER']}:#{ENV['RABBITMQ_PASSWORD']}@#{ENV['RABBITMQ_HOST']}:#{ENV['RABBITMQ_PORT']}",
workers: 4,
timeout_job_after: 10,
daemonize: Rails.env.production?
)
Sneakers.logger.level = Logger::INFO
Host OS: Ubuntu 14.04.4 Rails Version: 5.0.2 Gem version: a7d2fbcba2d9c6fbe762883021ec4e5836b7f5ff
gem 'capistrano-sneakers', github: 'inventionlabsSydney/capistrano-sneakers', ref: 'a7d2fbcba2d9c6fbe762883021ec4e5836b7f5ff'
Never passes next steps after sneakers:start
Here is
ps aux | grep sneakers
It looks like it doesn't launch it as daemon, so the command keeps waiting for response (sneakers are launched but not detached)
Here is part of the capistrano log