Is there a way to deploy global variables using appwrite cli (not appwrite project create-variable)?
- 0
- 2
- Self Hosted
- General
Hello! I wan't to deploy my global variables to my project using appwrite cli and my appwrite.config.json. Is there a method to do it using configuration files and cli?
My functions need to get access to global variables in appwrite, so, i need a way to deploy it automatically.
<@923897721574817842> functions are isolated serverless environments, so by default they wont have access to your global variables. but you can easily mount the variables that you would like to deploy
when pushing functions using cli you have the option called “—with-variables”, it reads the .env in your function folder. so you can create a bash script to copy over your global variable to the .env or likewise in your workflow
Recommended threads
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Getting current user has been blocked
Getting current user has been blocked error while signing in the appwrite console. Got this during I am testing with the my saas web project. Please help to unb...
- vorafy.studio domain already exists erro...
My domain vorafy.studio is stuck/locked from a previously deleted project. I created a new project but can't add the domain — getting 'already exists' error. Pl...