-2

I have a small application that I would like to host on Heroku. All the application do is log in to a remote server every 5 minutes to get a file and analyze it.

I am using rails3 and wondering how can I make it run background job like this.

Any suggestion is appreciated.

Thanks, David

Mitch Dempsey
  • 38,725
  • 6
  • 68
  • 74
Wei
  • 458
  • 6
  • 11

2 Answers2

3

See:

http://docs.heroku.com/background-jobs

Also:

Ruby on Rails: How to run things in the background?

Community
  • 1
  • 1
TK-421
  • 10,598
  • 3
  • 38
  • 34
0

also: Resque Railscast

Heroku has a lot of documentation on scaling up workers, and there are gems for only using workers while your processes need them, thus saving you a ton of money.

cbron
  • 4,036
  • 3
  • 33
  • 40