#[SOLVED] Deploy Function

21 messages · Page 1 of 1 (latest)

patent thunder
#

Hi,
When I try to deploy my function i got this error : "remoteVariables is not defined"
The function is already deploy on another project of my appwrite self hosted.
I've just change the cli to get connected to the new project (It is for having dev / prod environnement). Any idea why I can't deploy my function ?

#

variables is not anymore supported in appwrite.json, you've to use "vars"

blissful plank
patent thunder
#

Yes, just migrate my old appwrite.json replacing variables to use "vars" and now, it's fixed

blissful plank
#

@patent thunderCan I mark this as solved then or do you need further assistance?

patent thunder
#

no, it's solved

blissful plank
#

[SOLVED] Deploy Function

patent thunder
#

And even if the deploy don't crash now, the deploy never update my vars on the appwrite instance, so it can't be reopen 🙂

#

I think it is because my server don't have the same version than the cli. To my server waiting for 'variables' and the cli waiting for 'vars'

blissful plank
#

@solid lion do you have any idea about why it shows variables instead of vars?

solid lion
#

😅 Yeah I feel like we just missed changes with Appwrite.json

#

@dense sleet Does CLI deployment even work with environment variable anymore?

patent thunder
#

Not a big problem, because we can have another solution by using the website to add ours variables, but quite long with ours 25 functions 😵‍💫

dense sleet
blissful plank
#

@patent thunder Are you using latest cli version?

patent thunder
solid lion
polar ridge