#Quick Question
125 messages · Page 1 of 1 (latest)
Deploying it to a cloud provider should be the same/similar steps to what you did locally?
https://appwrite.io/docs/advanced/self-hosting#manual
What issues are you running into?
I already read it. in my case I want to migrate from local machine to remote vps host
what configuration changes to make?
IMO the best thing to do in this case would be to deploy a new instance of appwrite to your cloud provider, then utilize migrations within the appwrite console to tranfer functions/users/data/etc
and ports?
you mean fresh installation on vps and then transfer ?
it's installing, what domain will it use? my vps ip?
You would use your vps ip until you provide a domain
it's probably port 443 for ssl
update the environment variables to reflect the domain
yeah am doing it
what now?
it throwed error
kindly help me step by step now
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:1.6.0```
i am running this command
when you run that command what error occurs?
yea, just follow the steps it gives you
realistically I think you can pick any port you want, but many ports are already claimed by other services.
8080 for http
8443 for https?
kk am going for it
can i type domain I want to use?
yea
I think your domain
that is not a good answer 
sorry it's been a really long time since I ran this command myself for my instance.
probably your nginx instance causing issue, I've not got experience with that so I don't have much to offer.
should i ask hostinger?
From where?
local appwrite to vps appwrite
- database - collections
- functions
- storage
- message providers
only the setup, since it was development so there is no user data
@daring light @weak estuary
The self-hosted instance needs to be publicl accessible to migrate
If you want to keep everything in the same way as the local instance, you will need to backup and restore the backup manually in the server: https://www.youtube.com/watch?v=lM5yZEPtlvg
Appwrite is a self-hosted backend-as-a-service platform that provides developers with all the core APIs required to build any application.
It's a good practice to backup your Appwrite server data regularly if you need to restore it later.
Backup/Restore scripts: https://gist.github.com/stnguyen90/fee636ff652b8ecbf761935b2aa254fb
Backup Notes...
1 question
each appwrite function has a different id and goes with the domain
i have cloud.appwrite.com how will functions work? do i have to listen for ***.cloud.appwrite.com ?
*** is for function id
bro a little help
i think i forgot password or it is changed somehow
after restoration I am unable to login
i tried both local email password and newly installed as well
Double check you have set the same OpenSSL key in the env var settings
Aren't you using a VPS?
damn bro, you are genius
migrated successfully
now logged in
and one more thing for password reset it says smtp disabled but i have smtp enabled
and another thing how can i prevent others to signup or something like that
and also functions, functions create separate subdomain that is not accessable how to fix that
You need to set first the env variable prior to setting the server in the console
ok
I created a wildcard domain
but how to make it listen to the functions
@daring light _APP_DOMAIN_FUNCTIONS=*.domain.tld can i do this?
No
Just put the wildcard domain there so if you made a wildcard domain *.functions.appwrite.com then insert functions.appwrite.com
it says not 404 nginx error
uhhmmmm okay, so how to fix it
What is your nginx config
directly from docker?
2 websites 1 telegram bot
Did you cnfigure the nginx config yourself?
It can be done. Your config is just wrong
If I were you I would just ask ChatGPT about this
You can also post it here
I mean before you have to wipe everything just put nginx out of the equation and serve via traefik directly
It should work because I have used it this way before
u mean uninstall nginx and install traefik>
just systemctl stop nginx
any beginner commands for me?
and stop the other website as well
So port 80 and 443 is only reserved for appwrite traefik for now
Have you made any changes to the appwrite docker-compose file?
If not then just start it
made changes to env
Should be fine
ok, so what am i going to do about other apps
and btw appwrite is not working correctly perhaps. it is not loggin in and now loading....
What we are doing right now is to debug the problem you have
After that we have to make sure the nginx config is correct
Is it a new instance?