Skip to content
Paul Mackay edited this page Apr 3, 2014 · 10 revisions

THIS IS A WORK-IN-PROGRESS.

Provisioning

Support for using ansible is being developed.

Environment

App-specific configuration settings can be defined in config/initializers/open_food_network.rb. This can be copied from config/initializers/open_food_network.rb.example.

OpenFoodNetwork.config do |config|
  config.country = 'au'
end

Settings can be accessed as OpenFoodNetwork.config.country.

Seed data

Data files are selected based on the a directory matching the country configuration, e.g.

/db/default/spree/uk
  /states.yml
  /suburbs.yml

OFN configuration data

Products taxonomy

Defined in: /lib/seed_data

Sample data

Sample data includes:

  • addresses
  • enterprises
  • users
  • fees
  • payment methods
  • products

YAML files for this data are defined by country in:

/lib/seed_data
  /au
  /uk
  /usa
Clone this wiki locally