Updated README_DEVEL.

This commit is contained in:
benni 2012-08-24 15:20:33 +02:00
parent cd90439cc9
commit 7bc23698d1
3 changed files with 18 additions and 50 deletions

View File

@ -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:

View File

@ -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

View File

@ -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