Added info in readme for users to generate secret key before copying config file

This commit is contained in:
Gopesh Tulsyan 2014-04-30 10:54:59 +05:30
parent 63c890a3f8
commit 541a2652fe
2 changed files with 9 additions and 2 deletions

View file

@ -19,7 +19,13 @@ git clone https://github.com/openSUSE/osem.git
bundle install
```
3. Install ImageMagick from your distribution repository
4. Copy the sample configuration files and adapt them
4. Generate secret key for devise and the rails app with
```
rake secret
```
Look at config/config.yml.example.
5. Copy the sample configuration files and adapt them
```
cp config/config.yml.example config/config.yml
cp config/database.yml.example config/database.yml
@ -28,6 +34,7 @@ cp config/database.yml.example config/database.yml
```
bundle exec rake db:setup
```
7. Run OSEM
```
rails server

View file

@ -2,7 +2,7 @@
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# ==> Secret key, generate one with `rake secret`
config.secret_key = 'somesecretkey1234'
config.secret_key = CONFIG['devise_secret_key']
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,