Skip to content

Commit

Permalink
secret_token -> secrets.yml
Browse files Browse the repository at this point in the history
according to rails 4.1 upgrade http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml

* removed secret_token.rb
* created sample secret.yml
  • Loading branch information
lcx committed Dec 11, 2015
1 parent 85fb361 commit 572ea6b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
13 changes: 9 additions & 4 deletions README.md
Expand Up @@ -25,6 +25,11 @@ Any Rails developer will not have any problems running Salor Hospitality, since
cd SalorHospitality/salor-hospitality
cd config
cp database.yml.default database.yml
cp secrets_yml.example secrets.yml

Generate secrets and add to secrets.yml

rake secret

At this point, change `database.yml` for your database installation.

Expand All @@ -43,14 +48,14 @@ If you want to re-seed the database do the following:
rake db:create
rake db:migrate
rake db:seed

Or shorter:

rake db:reset







License
------------------------

Expand Down
7 changes: 0 additions & 7 deletions salor-hospitality/config/initializers/secret_token.rb

This file was deleted.

6 changes: 6 additions & 0 deletions salor-hospitality/config/secrets.yml.example
@@ -0,0 +1,6 @@
development:
secret_key_base:
test:
secret_key_base:
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

0 comments on commit 572ea6b

Please sign in to comment.