r/devops • • Oct 08 '26

Ops / Incidents Deployment of Web and Mobile application

I'm new to deploy an application to the internet. Lately I have been developing a CRM application for my company and they needed deployment support too from my side(*they lack technical support team to make things out). I'm using Ubuntu 24 Desktop for development purposes, and I'm planning to use Ubuntu 24 Server for testing(*staging) and production. Now what's the literal confusion is, I'm already hosting a website inside the machine which is the real production application of what I'm currently developing inside which I was lately planning to change it from Ubuntu Desktop to Server(*the application haven't been launched to public). Now, is it ideal to use the Desktop version of Ubuntu which I'm currently using, or go with Server version of Ubuntu to proceed with production.

Plans I have:

  1. Make use of 2 servers, one for development(*which I'm already doing right now) and local testing of application and one for testing(*staging) and production purpose
  2. Use ssh communication to the other server(*production server) to handle CI/CD builds
  3. Use github actions to push the docker image to other server to make it run the real application

For further clear understandings:

The application I'm developing already is being hosted in some website, more like a SaaS product, used cloudflare tunneling and pm2 instance for server-like modification of current system, with database running inside the machine, not inside any cloud services, so npm run build pushes all the changes to the site directly without any CI/CD checks like traditional devops cycle, and I'm already testing the application with real db of the company inside the production site, which literally all officials of the office knows(*they don't have much technical knowledge at all). There's a literal rush at that time in my office from Directors to host the website with the real application without any time delays. That's why I got messed up in the production so much. I'm now planning to stash the hosted website from the machine currently been hosted just by removing the machine tunneling, reinstall Ubuntu Server, configure directories properly and use PR and tags for changes inside the real application.

Tech stacks being used:

  1. React js for frontend of web app
  2. React Native for mobile app
  3. Express JS over Node JS for backend
  4. PostgreSQL for DB
  5. Seaweedfs for S3 object storage
  6. JWT for authentication and bcrypt js for hashing

I need a support from you guys for this chaos I'm literally stuck in!!!!!!!!!!!!!!!!!
Am I cooked brotha????
Is this the right way or should I change my own path of implementing??

0 Upvotes

13 comments sorted by

View all comments

1

u/Immediate_Wheel1953 Oct 09 '26

You're not cooked, this is a totally normal first deploy setup. One change I'd make: don't build the image on the prod server over ssh, build it once in GitHub Actions and have prod just pull it. I used to build on the box itself and one day an npm build ate all the memory and took the site down mid deploy. Also back up that postgres data before you move it into a container, that's the part that actually bites.

1

u/kuro_zip7 Oct 09 '26

Oh thanks for sharing your insights brotha 😊 I'll try to implement this thing