Add advise to modify secret token
This commit is contained in:
parent
c17ff281c3
commit
1e725872da
2 changed files with 85 additions and 4 deletions
18
README_DEVEL
18
README_DEVEL
|
|
@ -36,7 +36,17 @@ 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
|
||||
-------------------
|
||||
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/environment.rb.SAMPLE config/environment.rb
|
||||
|
||||
and modify the token "config.action_controller.session"!!!
|
||||
|
||||
|
||||
(5) Required ruby and gems
|
||||
-------------------
|
||||
We reccomend the using of rvm (https://rvm.beginrescueend.com/). Install rvm and get the lates ruby (1.8.7).
|
||||
If installed you only need to install the gem bundler:
|
||||
|
|
@ -48,7 +58,7 @@ 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:create
|
||||
rake db:schema:load
|
||||
|
|
@ -57,8 +67,8 @@ After that you get the other gems easily with (from project root):
|
|||
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
|
||||
script/server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue