Skip to content

About Application secret key? #3700

Answered by Julien-R44
daxiongYang asked this question in Help
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daxiongYang
Comment options

Answer selected by Julien-R44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants