I want to use clockwork in my ruby on rails project. Ruby 1.9.3 Rails 3.0.9
i ran bundle install in root
Installing clockwork (0.7.5)
....
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ bundle show clockwork
/scratch/install/ruby193/lib/ruby/gems/1.9.1/gems/clockwork-0.7.5
$ bundle exec clockwork config/clock.rb
The source :gemcutter is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
bundler: command not found: clockwork
Install missing gem executables with `bundle install`
I have no idea of how to call clockwork gem. It always gives me "command not found: clockwork". Other gems are all okay except this clockwork gem :(
Actually, i have the same problem as https://meta.discourse.org/t/how-to-run-clockwork-in-background/6176/4
Please help and thank you in advance!
First you need add Daemons in your 'Gemfile'.
gem 'daemons'
Then run bundle
to install Daemons gem. After you can run:
clockworkd -c YOUR_FILE.rb status
clockworkd -c YOUR_FILE.rb start
clockworkd -c YOUR_FILE.rb stop
Or:
bundle exec clockworkd -c YOUR_FILE.rb status
bundle exec clockworkd -c YOUR_FILE.rb start
bundle exec clockworkd -c YOUR_FILE.rb stop