Back

Deploying Todo example at DigitalOcean

  • 0
  • Self Hosted
  • Web
RodrigoMF
23 Apr, 2023, 15:16

From Docs: https://appwrite.io/docs/getting-started-for-web I've follow the instructions at https://github.com/appwrite/demo-todo-with-react To deploy to my DigitalOcean account, as my static hosting provider, using the "Deploy to DigitalOcean" button, which link is: https://cloud.digitalocean.com/apps/new?repo=https://github.com/appwrite/todo-with-react/tree/main

I've configured the 3 env vars to point to my appwriter endpoint, as well the project and collection IDs, running inside a docker (from DigitalOcean Appwrite marketplace)

But the DigitalOcean deploy failed. Attached, the log message. Any one could, please, help me?

TL;DR
The user is trying to deploy the Todo example from the Appwrite documentation to DigitalOcean. They initially encountered an error related to dependencies, which they believe is due to the node version on the server. A suggestion was made to deploy the application to a different platform like Cloudflare Pages, Vercel, or Netlify, as there is no need for it to run on the Appwrite server. Additionally, if they want to run multiple things on a single server with different domains, they will need a reverse proxy like Nginx Proxy Manager (NPM). They were provided with a link to a tutorial on setting up NPM.
RodrigoMF
23 Apr, 2023, 15:17

Deploying Todo example at DigitalOcean

Drake
23 Apr, 2023, 15:21

If you're only testing it out, you don't need to deploy it on DigitalOcean 🧐 you can run it locally

RodrigoMF
23 Apr, 2023, 15:48

Thank you for the prompt response. I Understand your point and I agree. I have already tested an APP running locally in development mode (the front end being served at localhost:3000) on the same VM from DigitalOcean where appwrite is installed inside the docker. It works great!

But, I would like to test the process of deploying the App into a real production environment. That is why I tryed to follow the github readme instructions to do that using DigitalOcean, as it is my actual cloud plataform where I have an active account.

I would also like to test deploying the frontend in the same VM at DigitalOcean where the appwrite is running. Is there any tutorial for that? I mean, having the frontend served at mydomain.com and the appwrite at appwrite.mydomain.com.

Drake
23 Apr, 2023, 15:55

Then the problem might be the node version on the server. It was a little hard to read but the error looked like it had to do with dependencies.

Honestly, for a single page application, I would deploy to something like cloudflare pages, vercel, or netlify. There's no need for it to run on your Appwrite server. And those providers I shared have global CDNs for better global coverage.

That said, if you want to run multiple things on a single server exposed with different domains, you'll need a reverse proxy. Nginx proxy manager (NPM) is a nice easy GUI for this. If you need help setting up NPM, check out https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243

RodrigoMF
23 Apr, 2023, 15:57

Thanks once more. I will take your suggestions...

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more