so the thing is I want to use appwrite with my hosting where I can upload files directly to make them work suppose I have build a server in next.js I will do npm build then upload the files generated to the hosting site but due to appwrite being in docker I can't do that
I have already tried reversing the images of docker but it didn't helped much tried other alternatives but can't seen to move on from appwrite
solutions can be maybe the source code that is in javascript or any other language - can't seem to find any online or maybe someway to get the build (like how we do npm run build) from docker or something..
please help me it would really really help
also I don't want to use any other vms or something like that to host as I already have hosting for 1 year that I really want to use
so I just found out that php is used by appwrite so my bad the solution can be either how to host the php file like usually it can be hosted by uploading the files and main file being index.php which serves the home page
You can create another docker with nodejs and nginx. Run NEXT in nodejs with PM2. It should be expose to localhost port that is like 3050 or something. and run appwrite on that vm too. Let NginX to handle yourdomain.com and appwrite.yourdomain.com and forward traffic internally. Also add websocket to nginx to make sure appwrite realtime is working. It works.
thank you for the reply but this seems too complicated any other solution 🫠
@vedant Appwrite needs docker to run, basically because it depends on many microservices, mainly for the serverless functions feature. Are you able to run there docker?
no the hosting site doesn't allows to use docker
In this case Appwrite might won't work Appwrite can't be used as an PHP app out-of-the-box as it depends in many other services to work together
Check this to find about Appwrite architecture.
Recommended threads
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- 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...