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
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...