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

2

u/singh_abinashi Oct 08 '26

I'd do the same split. Dockerize the Express API first, so prod is a compose file, not a PM2 process list on someone's desktop. Keep a separate Postgres instance with separate credentials per environment. And back up the prod DB before you touch any of it.

1

u/kuro_zip7 Oct 08 '26

That was my actual plan is, I'm beyond cooked right now, had so many confusions on how I'm gonna implement this I'm really confused of wiping out the current system data which runs the live application inside it and reinstall ubuntu server inside it and run the production docket image Since it's not a very large application to handle it on kubernetes, I choose normal github actions to manage ci/cd builds However, is stashing the current production system and reinstall ubuntu server to manage future live site ideal ?? Or is there any other alternatives ??