No description or website provided.
Ruby
Pull request Compare This branch is 10 commits ahead of kylefritz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
models
Gemfile
Gemfile.lock
Procfile
Rakefile
app.rb
clock.rb
confdb.rb
config.ru
jobs.rb
readme.md

readme.md

Sinatra + MongoDB + Resque + Clockwork Bootstrap

This project is a bootstrap to begin project with these technologies.

  • Sinatra framework
  • MongoDB database
  • Resque background jobs
  • Clockwork cron

Run databases

MongoDB (main database)

$ mkdir data
$ mongod --dbpath ./data

Redis (for Resque)

$ redis-server

Run services

$ bundle install
$ foreman start

Deploy on heroku

Create a Heroku cedar and add some free addons

$ heroku create --stack cedar
$ heroku addons:add mongohq:free
$ heroku addons:add redistogo:nano

After pushing setting up accounts and pushing you changes, run the following code to scale your heroku project (may not be free)

$ heroku scale web=1 resque=1 clock=1

:)

Thanks

Thanks to kylefritz for make my life little bit easier with his Resque+Sinatra+Foreman example