From 7bc23698d1c94295b70433e9e15441384b408c66 Mon Sep 17 00:00:00 2001 From: benni Date: Fri, 24 Aug 2012 15:20:33 +0200 Subject: [PATCH] Updated README_DEVEL. --- README_DEVEL | 20 +++++++--- config/environments/development.rb.SAMPLE | 3 ++ config/foodcoops.yml.SAMPLE | 45 ----------------------- 3 files changed, 18 insertions(+), 50 deletions(-) delete mode 100644 config/foodcoops.yml.SAMPLE diff --git a/README_DEVEL b/README_DEVEL index 86e9448b..385a3583 100644 --- a/README_DEVEL +++ b/README_DEVEL @@ -36,9 +36,19 @@ You need to create your own copy of the foodsoft configuration settings: Edit app_config.yml to suit your needs or just keep the defaults for now. -(4) Required ruby and gems +(4) Secret Token ------------------- -We reccomend the using of rvm (https://rvm.beginrescueend.com/). Install rvm and get the lates ruby (1.8.7). +The user session are stored in cookies. Do avoid misusing the cookies and its sensitive information, rails +will encrypt it with a token. So copy the config file + + cp config/initializers/secret_token.rb.SAMPLE config/initializers/secret_token.rb + +and modify the token!! + + +(5) Required ruby and gems +------------------- +We reccomend the using of rvm (https://rvm.beginrescueend.com/). Install rvm and get the latest ruby (>= 1.9.3). If installed you only need to install the gem bundler: gem install bundler @@ -48,21 +58,21 @@ After that you get the other gems easily with (from project root): bundle install -(5) Create database (schema) and load defaults +(6) Create database (schema) and load defaults -------------------------- rake db:setup With this, you also get a ready to go user with username 'admin' and password 'secret'. -(6) Try it out! +(7) Try it out! --------------- Start the WEBrick server to try it out: script/server -(7) (optional) Get background jobs done +(8) (optional) Get background jobs done --------------------------------------- We use for time intensive tasks a background job queue, at the moment delayed job. To deliver mails etc you have to start the workers: diff --git a/config/environments/development.rb.SAMPLE b/config/environments/development.rb.SAMPLE index 11e14527..1eb79540 100644 --- a/config/environments/development.rb.SAMPLE +++ b/config/environments/development.rb.SAMPLE @@ -22,4 +22,7 @@ Foodsoft::Application.configure do # Only use best-standards-support built into browsers config.action_dispatch.best_standards_support = :builtin + + # Configure hostname for action mailer + config.action_mailer.default_url_options = { host: 'localhost:3000' } end \ No newline at end of file diff --git a/config/foodcoops.yml.SAMPLE b/config/foodcoops.yml.SAMPLE deleted file mode 100644 index 2883d035..00000000 --- a/config/foodcoops.yml.SAMPLE +++ /dev/null @@ -1,45 +0,0 @@ -# Foodcoops configuration - -# test1 is the subdomain. e.g. test1.foodcoops.net -test1: - # name of this foodcoop - name: FC Test - - # foodcoop contact information (used for FAX messages) - contact: - street: Grüne Straße 103 - zip_code: "10997" - city: Berlin - country: Deutschland - email: foodsoft@myfoodcoop.org - phone: "030 323 23249" - - # base URL for this installation - base_url: http://www.fctest.de - - # foodsoft documentation URL - help_url: http://foodsoft.fcschinke09.de/trac/wiki/FoodsoftDoku - - # price markup in percent - price_markup: 2.0 - - # email address to be used as sender - email_sender: foodsoft@myfoodcoop.org - - # localized date/time formats - - - -#test2: -# name: FC Test2 -# contact: -# street: Grüne Straße 103 -# zip_code: "10997" -# city: Berlin -# country: Deutschland -# email: foodsoft@fctest2.org -# phone: "030 323 23249" -# base_url: http://www.fctest2.de -# help_url: http://foodsoft.fcschinke09.de/trac/wiki/FoodsoftDoku -# price_markup: 1.0 -# email_sender: foodsoft@fctest2.org