I deploy my functions with the command `appwrite deploy function' and than i select my function i want to deploy.
My Problem is, that after that i have to go to the cloud console and reupload the .env file. The .env file holds the information i need for the dart server runtime Is ist possible to upload the file using the appwrite cli?
Another solution which would fit me is that my dart function is deployed with the .env file which i put in the correct place.
you can put your variables in your appwrite.json file.
also, you should be able to skip overriding the variables...what version of the CLI do you have?
my cli version is: 2.0.2
doesn't it prompt you about variables?
no it just ask me what function i want to deploy. (if you mean that, otherwise i did not understand you) :D
I did not specify the variables attribute of appwrite.json so it did not ask me.
Thanks for the great support
that said, it shouldn't have wiped the variables on your server 🧐
luckily it did not :D
Oh why did you have to upload the .env file? Because you needed to update some values?
yeah i needed to update some values and I am using the env file because i can put it in my gitignore. Thats the problem I am having with puttin my secrets in appwrite.json file because i want to track this file with git.
I use a default one that I check in to version control and I ignore the actual json one.
https://github.com/stnguyen90/places/blob/main/appwrite.json.default
Thanks I will give it a try
Recommended threads
- `type 'Null' is not a subtype of type 'b...
When creating a new file using Appwrite Flutter SDK, the file is successfully created on the server, but the client throws the following exception: ``` type ...
- Console: Query on attribute has greater ...
I noticed an issue when one of my tables reached over ~800 rows. That table is relational to my users table Within the console I am able to view the table with ...
- Appwrite 1.8.1 - Traefik Returns 404 Due...
Problem: Fresh Appwrite 1.8.1 installation returns 404 on all requests. Traefik can't communicate with Docker daemon. Error: Error response from daemon: client ...