A simple Sinatra sample app for the RabbitMQ service/add-on
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 9 commits ahead, 2 commits behind rabbitmq:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
views
Gemfile
Gemfile.lock
Procfile
README.md
rabbit.rb

README.md

rabbitmq-service-sinatra-sample

This is a very simple Sinatra application demonstrating the use of the RabbitMQ service on Cloud Foundry, or the RabbitMQ add-on on heroku.

To try out the sample for yourself, clone the repository and, in its base directory, run the following:

$ heroku create
Creating hollow-mountain-815... done, stack is bamboo-mri-1.9.2
http://hollow-mountain-815.heroku.com/ |
git@heroku.com:hollow-mountain-815.git
Git remote heroku added
$ git push heroku master
Counting objects: 64, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (49/49), done.
Writing objects: 100% (64/64), 86.59 KiB, done.
Total 64 (delta 2), reused 0 (delta 0)

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Detected Rails is not set to serve static_assets
       Installing rails3_serve_static_assets... done
-----> Configure Rails 3 to disable x-sendfile
       Installing rails3_disable_x_sendfile... done
-----> Configure Rails to log to stdout
       Installing rails_log_stdout... done
-----> Gemfile detected, running Bundler version 1.0.7
       Unresolved dependencies detected; Installing...
       Using --without development:test
       Fetching source index for http://rubygems.org/
       [...]
       Your bundle is complete! It was installed into ./.bundle/gems/
-----> Compiled slug size is 4.1MB
-----> Launching... done, v4
       http://hollow-mountain-815.heroku.com deployed to Heroku

To git@heroku.com:hollow-mountain-815.git
* [new branch]      master -> master

Your own application will get a name different from hollow-mountain-815. You can change this name in your Heroku web console if you'd like.

Then provision a RabbitMQ Bigwig instance:

$ heroku addons:add rabbitmq-bigwig

And visit your sample application!