Skip to content

jrub/r14-team-479

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Depencies

  • Ruby 2.1.2 (other versions not tested)
  • Bundler
  • Elastic search (requires JDK & JSDK < 1.8)

Setup

Copy yml configuration files from examples:

  $ cp config/database.yml.example config/database.yml
  $ cp config/secrets.yml.example config/secrets.yml

Install gems

  $ bundle install

Create databases and tables

  $ rake db:create db:migrate

Import data from json files *

rake leancook:import

Index data

  $ bundle exec rake environment elasticsearch:import:model CLASS='Recipe'

## Heroku addons

Bonsai

REQUIRED Create index in production:

 $ heroku run bundle exec rake environment elasticsearch:import:model CLASS='Recipe' FORCE=true

Documentation: https://devcenter.heroku.com/articles/bonsai

Dashboard:

 $ heroku addons:open bonsai

About

Leancook: What's in your fridge? -- RailsRumble 2014

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published