Skip to content

Commit cb7da8e

Browse files
toyoliverguenther
authored andcommitted
genrating secret can be done using rails secret since rails 5
Not sure when it became not possible to use rake secret for that
1 parent 992359c commit cb7da8e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/credentials.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
# Make sure the secret is at least 30 characters and all random,
3535
# no regular words or you'll be exposed to dictionary attacks.
36-
# You can use `rake secret` to generate a secure secret key.
36+
# You can use `rails secret` to generate a secure secret key.
3737

3838
# Make sure the secrets in this file are kept private
3939
# if you're sharing your code publicly.

docs/installation-and-operations/installation/manual/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ will seed the database in the French language.
239239

240240
### Secret token
241241

242-
You need to generate a secret key base for the production environment with `./bin/rake secret` and make that available through the environment variable `SECRET_KEY_BASE`.
242+
You need to generate a secret key base for the production environment with `./bin/rails secret` and make that available through the environment variable `SECRET_KEY_BASE`.
243243
In this installation guide, we will use the local `.profile` of the OpenProject user. You may alternatively set the environment variable in `/etc/environment` or pass it to the server upon start manually in `/etc/apache2/envvars`.
244244

245245
```shell
246-
[openproject@host] echo "export SECRET_KEY_BASE=$(./bin/rake secret)" >> ~/.profile
246+
[openproject@host] echo "export SECRET_KEY_BASE=$(./bin/rails secret)" >> ~/.profile
247247
[openproject@host] source ~/.profile
248248
```
249249

0 commit comments

Comments
 (0)