dfx deploy
does not create .env
file. It is weird, because for my other package .env
file is created.
What’s wrong? How to create the .env
with canisters IDs?
$ dfx --version
dfx 0.15.2+rev15.283413df
dfx deploy
does not create .env
file. It is weird, because for my other package .env
file is created.
What’s wrong? How to create the .env
with canisters IDs?
$ dfx --version
dfx 0.15.2+rev15.283413df
Does your dfx.json contain this line in both cases?
Yes, missing that line was the error.
I’m curious, is there any command that can automatically generate .env
file?
Assuming you have the line in dfx.json that enables .env
generation, then it is generated during the build step, either in dfx build
or dfx deploy