Report this

What is the reason for this report?

Hosting multiple Nuxtjs apps on same domain in app platform

Posted on September 3, 2022

For a personal project i want to use app platform for hosting my nuxt 3 app.

What i am using now:

  • main domain -> example.com which is a different gitlab repo and different pipeline
  • Sub domain -> app.example.com This way i could update the container one by one and on different versions.

What i might want to use:

  • Example.com hosts my main application
  • Example.com/dashboard hosts my dashboard I know you can host multiple components in the app platform. Since i am using supabase this would be better. I dont need multiple login screens since logging in on example.com/login would also log me in on the dashboard.

Questions:

  1. With different apps in app platform i can just use doctl in gitlab pipeline and push a new update when the pipeline is finished. How is this done on component level? If i have two components how do i update them apart from each other with out forcing both components to rebuild?
  2. Can you give labels or tags to components in the YAML file?
  3. If i want to go with the second setup, is there any additional config required on the app platform to make this work beside changing the http route and port where the container is listening to?

Hope someone has the time and patience to explain this to me.

Thanks in advancce.

Greetings,

Dylan

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.