Hey I had a question, normally I connect to appwrite db from my real device using the ip address of the network and also the db responds only when my laptop is on or docker is hosting appwrite. So, while publishing my app, how can I know the user's ipaddress or keep my latop always open ??
You don't need to connect directly to the DB, you just connect to the appwrite instance
You need to have it running both appwrite, it's docker container, database and other needed containers, so at this moment, if I'm not wrong, there's not any official way to run appwrite without docker
You don't need to know users IP address, since they're connecting to your appwrite's main instance. This can be hosted on a server or your computer (not recommended) Also don't use an IP directly, instead, use a domain
I'm a bit confused on what you're trying to achieve
well, while I am developing the app everything is ok. But, yk I sometimes try the app while the docker is not running I mean while the laptop isn't running. So, at that time connection with appwrite fails. I just want to solve that
My mistake, it should have been appwrite what I can't connnect withut docker not db directly
Appwrite is running and hosted in your computer, and the database with it's data is saved and served from you computer, so obviously if it's off, it will not work
yes, and I just don't want that to happen. so, if I make an app and publish it in playstore, will I have to keep my laptop open 24/7 ?
Yes
Or you can host appwrite in a server, like digitalocean
Or use appwrite cloud: https://cloud.appwrite.io
Note: appwite cloud is currently in beta
oh, tnx for the help π
[SOLVED] Keep appwrite running 24/7 without laptop (hosting)
What I did is installed appwrite on my Raspberry Pi 4, I also set up port forwarding on my router so that I can access it from outside my home network. Perfect set up for testing. Buy small SSD (via SATA to USB) if you can also, will improve disk speed by a lot.
Yes, also some Synology NAS have support for docker, so it can be installed there. However, I think it's always better using a server from a third party that can guarantee an uptime and reliability, unless if you have a redundant one, with a redundant network and power. Also for vertical scaling, most times, it's easier if hosted in a third party cloud/VPS server
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Current User is Not authorized
recreating same Thread