Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Add a working app.json #5

Merged
merged 8 commits into from May 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -10,8 +10,7 @@ Asumming you have [Ruby](https://www.ruby-lang.org), [Bundler](http://bundler.io
git clone git@github.com:heroku/ruby-rails-sample.git # or clone your own fork
cd ruby-rails-sample
bundle
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake bootstrap
foreman start
```

Expand Down
14 changes: 14 additions & 0 deletions app.json
@@ -0,0 +1,14 @@
{
"name": "Ruby on Rails",
"description": "A template for getting started with the popular Ruby framework.",
"website": "http://rubyonrails.org",
"repository": "https://github.com/heroku/ruby-rails-sample",
"logo": "http://upload.wikimedia.org/wikipedia/commons/c/c3/Ruby_on_Rails_logo.svg",
"scripts": {
"postdeploy": "bundle exec rake db:migrate"
},
"env": {
"RAILS_ENV": "production"
},
"addons": ["heroku-postgresql"]
}
6 changes: 6 additions & 0 deletions lib/tasks/bootstrap.rake
@@ -0,0 +1,6 @@
desc "Get the application set up for development"

task :bootstrap => :environment do
Rake::Task["db:create"].invoke
Rake::Task["db:migrate"].invoke
end