About Application secret key? #3700
-
Please, is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, I think it's definitely a good practice to use a different key between production and your dev environment. But it's not a big deal as long as you haven't committed or shared your .env file with anybody, but I recommend you to generate a new key for your production anyway. To do this you can use the command |
Beta Was this translation helpful? Give feedback.
Yes, I think it's definitely a good practice to use a different key between production and your dev environment. But it's not a big deal as long as you haven't committed or shared your .env file with anybody, but I recommend you to generate a new key for your production anyway.
To do this you can use the command
node ace generate:key
and you will have a new APP_KEY in your .env. Don't lose it otherwise all your encrypted data like cookies, sessions and others will be invalid.