I have 2 projects in my organization. One is used as my staging environment and one is used as my prod environment.
When I initialize an Appwrite project, I get my appwrite.json
with one level of data. Is there a way to configure it such that I can have more flexibility in what Appwrite is targeting?
For example, having a payload
"env":
{ "staging": {
"projectId": "12345",
"projectName": "App Staging"
},
"prod": {
"projectId": "12ABC",
"projectName": "App"
}
}
"default": "staging"
and having the ability to run CLI commands like this:
appwrite functions createDeployment <stuff> --profile staging
I'm not necessarily proposing the implemntation details. This is just referencing what AWS CLI does when you have multiple roles.
Is there something that exists that can handle this?
This sounds like a good feature request.
For now, I'd have multiple appwrite.json files and maybe use a symlink to switch between the two.
That's a great workaround. Thanks!
Isn’t a “profile switching” feature already planned? IIRC, it was more planned for server/user switching, but it could be extended to project switching?
Ya, there's a feature request for that
If your issue has been solved, you can mark this post as closed by adding “[SOLVED]” to the beginning of the title
[SOLVED] Are There Appwrite Profiles?
Recommended threads
- Appwriter Linux Key Bindings
Any tips for configuring appwriter for ubuntu? Actually the keybindings are tightly binded to either windows or mac. Working well on windows but in ubuntu some ...
- Admin Impersonating Clients?
I have a client that needs to use the admin User, to impersonate the Clients in order to debug better the App and the services that they are providing, could yo...
- create project api-rest
Hello good afternoon, I'm developing a project where I need to create a project by apirest, but I'm stuck with this "projects.read" permission, can I change my ...