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
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...