mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Added info in readme for users to generate secret key before copying config file
This commit is contained in:
parent
63c890a3f8
commit
541a2652fe
2 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue