Back

[SOLVED] How to serve app?

  • 0
  • Web
Maktech07
29 Jun, 2023, 14:03

I have just started last night with the Digital Ocean install and have it mapped to my url with DNS but when going to my url it takes me to the login page of appwire. How do I route to a specific platform instead. My hope is to use the url to open to my webpage which is one of the platforms.

I am pretty sure my terminology is a bit off. 🙂 Thanks for the help

TL;DR
The user had a question about serving their app using Appwrite. They initially considered using a separate droplet but then asked if they could run Appwrite and another server (e.g., Python) on the same droplet. The response indicated that it is possible to have both on the same droplet but recommended separating concerns. They explained that Appwrite serves as the backend, and the frontend can be a web app (hosted on platforms like Netlify) or different mobile apps (Flutter, Android, iOS). They mentioned that if the user wants to host static websites within Appwrite, they can track a feature request or use Funcover
Maktech07
29 Jun, 2023, 14:04

I also have it hooked up to my Digital Ocean Spaces

Binyamin
29 Jun, 2023, 14:11

You can avoid this by adding another docker container, but best practice is the separation of concerns.

When using Appwrite, you'll need to have 2 end points (at least)

  1. Appwrite - the one you've created in DigitalOcean
  2. Frontend, which can be
    • Frontend JS hosted on services like Netlify, Cloudflare pages etc.
    • Flutter app.
    • Android app.
    • iOS app.

As Appwrite is your backend and its a BaaS (Backend-as-a-Service) that will take care of all your backend needs.

P.S. If you're referring to the option to show (host) static websites in your Appwrite like Firebase hosting, then you can:

Maktech07
29 Jun, 2023, 14:34

So under integrations and you add a platform you have the option to add Web App, Apple, Android, Flutter. You define a hostname etc. This is meant to represent the backend of the application, not the front end, correct? I have seen tutorials (which I have not completed yet) about "Sveltekit app with AppWrite" which end up with them running the application on a webpage, so that hosted app must be hosted from appWrite somehow.

Binyamin
29 Jun, 2023, 14:35

Yep, It mostly hosted on a separate server.

Maktech07
29 Jun, 2023, 14:36

so assuming I want to stay under Digital Ocean can I actually run appWire and let's say a python server on the same droplet?

Maktech07
29 Jun, 2023, 14:37

or do I need a separate droplet

Binyamin
29 Jun, 2023, 14:39

What I do suggest is to go with the two servers solution, but if this is not the preferred solution, then If you want them to be on the same server, you can, but you'll need: To add another container (and traefik rule) inside your docker compose Or Change Appwrite default ports and deliver it behind Nginx https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243

Maktech07
29 Jun, 2023, 14:42

I'll go with a separate droplet, that works.

Maktech07
29 Jun, 2023, 14:43

really appreciate the help, going nuts looking for something that does not exist. 🙂

Binyamin
29 Jun, 2023, 14:43

<a:agooglethumbsup:635256484682530825>

Drake
29 Jun, 2023, 20:06
Drake
29 Jun, 2023, 20:07

[SOLVED] How to serve app?

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