A Pen by Paulo Leonardo Vieira Rodrigues on CodePen.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finished in 0.002514 seconds. | |
------------------------------------------------------------------------------------------------------------------------ | |
3 tests, 3 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications | |
100% passed | |
------------------------------------------------------------------------------------------------------------------------ | |
1193.32 tests/s, 1193.32 assertions/s | |
c:\temp\ruby>ruby first_quest.rb | |
user system total real | |
0.000000 0.000000 0.000000 ( 0.000069) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So i was using Rails 4.1 with Unicorn v4.8.2 and when i tried to deploy my app it doesn't start properly and into the unicorn.log file i found this error message: | |
"app error: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml` (RuntimeError)" | |
After a little research i found that Rails 4.1 change the way to manage the secret_key, so if we read the secrets.yml file located at exampleRailsProject/config/secrets.yml (you need to replace "exampleRailsProject" for your project name) you will find something like this: | |
# Do not keep production secrets in the repository, | |
# instead read values from the environment. | |
production: | |
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> |
A Pen by Paulo Leonardo Vieira Rodrigues on CodePen.
A Pen by Paulo Leonardo Vieira Rodrigues on CodePen.
A Pen by Paulo Leonardo Vieira Rodrigues on CodePen.
A Pen by Paulo Leonardo Vieira Rodrigues on CodePen.
NewerOlder