Ruby on Rails application to get information of YouTube channel
Create a configuration file to manage Resque and resque-scheduler with God
$ RAILS_ENV=[RAILS_ENV] bundle exec itamae local config/itamae/resque.rb
Load configuration file
$ god -c /etc/god/master.conf
Resque, resque-scheduler operation with God
- check the status
- start
- restart
- stop
$ sudo god status youtube_api_trial
$ sudo god start youtube_api_trial
$ sudo god restart youtube_api_trial
$ sudo god stop youtube_api_trial
bundle
bundle exec rails assets:precompile RAILS_ENV=[RAILS_ENV]
bundle exec pumactl start -e [RAILS_ENV]
If a Resque job fails, a notification is sent by email.
Please fill in the settings of email to config/mail.yml .
The following is an example when sending from Gmail:
production:
delivery_method: :smtp
smtp_settings:
address: 'smtp.gmail.com'
port: 587
domain: 'gmail.com'
user_name: [USER_NAME]
password: [PASSWORD]
authentication: 'plain'
enable_starttls_auto: true