Processes to run Whenever gem in remote server.

These are the processes to run whenever gem in remote server:

  1. Install the whenever gem
  2. Write your scheduler.rb file
  3. Push to the remote server
  4. Login to the remote server (for example with ssh)
  5. See if whenever is good uploaded by running in terminal: whenever . You can see the following type result if whenever is uploaded.

Screen Shot 2015-10-04 at 9.40.12 PM

  1. Update whenever crontab by running: whenever –update-crontab
  2. Restart the server crontab (for example in Ubuntu server): sudo service cron restart
  3. Check if crontab is good implemented on the server: crontab -l.  You can see the following type result after whenever implemented.

Screen Shot 2015-10-04 at 9.48.08 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s