Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
How do I deploy three separate repos for 1 main domain and 2 subdomain on DigitalOcean?

I'm fairly new to MERN and we're trying to deploy an app to DigitalOcean with one main domain and 2 subdomain.

we have the following setup for our app.

Three separate repos:

  • Api (backend server for reading writing data)
  • User (front end for users of our app)
  • Admin (back end for admins)

We have 3 domains / subdomains registered in the following format: domain.com (user) admin.domain.com (admin) api.domain.com (api)

Questions:

  • How do we setup the droplet to accommodate this configuration? (user and admin side should point to api server)
  • How do we deploy to the three separate repos from github to the one droplet while respecting the corresponding domain / subdomains?

Other considerations: Do we need to use Nginx? Pm2? We will be using mongodb as our database.

Thank you!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I would suggest you to use Nginx as a web server. PM2 would not be a choice because it's not probably a server by itself.

Refer Nginx Docs here

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!