Habitat and Chef Delivery Example Rails Application
Ruby Shell HTML CSS JavaScript CoffeeScript
Latest commit 3b28b5c Dec 16, 2016 Delivery Server Merged change 8a04b4e9-3182-44a5-ae58-8d9611c76341
From review branch _reviews/master/jtimberman/remove-database-details/1 into master

Signed-off-by: jtimberman <joshua@chef.io>
Permalink
Failed to load latest commit information.
.delivery use new job dispatch, and remove zlib dep constraint Dec 8, 2016
app Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
bin Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
config Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
cookbooks/ruby-rails-sample Remove database details from template and pass in variables Dec 16, 2016
db Add db schema Feb 8, 2014
habitat use the static path not the data path Dec 12, 2016
lib call migrate directly from app.json script May 5, 2014
log rails new ruby-rails-sample --database=postgresql Feb 8, 2014
public Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
test Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
vendor/assets rails new ruby-rails-sample --database=postgresql Feb 8, 2014
.gitignore use my fork for testing Nov 18, 2016
.ruby-version Upgrade Ruby version Apr 9, 2015
Gemfile Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
Gemfile.lock Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
Procfile Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
README-habitat.md Add README-habitat.md, update licenses Jun 7, 2016
README.md Remove reference to old article Apr 9, 2015
Rakefile Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
app.json Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015
config.ru Upgrade to Ruby 2.2.1, Rails 4.2.1, and use Puma instead of Unicorn Apr 9, 2015

README.md

ruby-rails-sample

This is a simple Ruby app using the Rails framework.

Running Locally

Make sure you have Ruby, Bundler and the Heroku Toolbelt installed.

git clone git@github.com:heroku/ruby-rails-sample.git # or clone your own fork
cd ruby-rails-sample
bundle
bundle exec rake bootstrap
heroku local

Your app should now be running on localhost:5000.

Deploying to Heroku

heroku create
git push heroku master
heroku run rake db:migrate
heroku open

Alternatively, you can deploy your own copy of the app using the web-based flow:

Deploy to Heroku

Documentation

For more information about using Ruby on Heroku, see these Dev Center articles: