On this page10
  1. At a glance
  2. From code to a running service, step by step
  3. Proving a change is live, step by step
  4. A real incident
  5. Migrations and upkeep
  6. Why this matters for AI work
  7. Many services, one operation
  8. Frequently asked questions
  9. More on how I run production
  10. Need someone who can own the whole stack?

Part of AI engineering, intelligent automation and production systems. By Mohammad Javad Dastouri, full-stack and AI engineer.

An AI system is only as reliable as the server it runs on. I design and run complete application environments, not only application code.

software projects
25+
live services
17
hosting and server environments managed
25+

At a glance

Languages
Node.js, Python and PHP 8.2 to 8.4
Databases
MySQL, MariaDB, PostgreSQL and Redis
Servers
Ubuntu and Debian Linux, Nginx, Apache and Caddy
Interfaces
REST APIs, HTTP and webhooks
Network and mail
DNS, SSL with Let's Encrypt, reverse proxies, mail infrastructure and MX records
Processes
PM2, systemd and Docker
Operations
SSH and multi-server deploys, AWS CLI and S3 backups, cPanel, monitoring and server administration
Languages
Node.js, Python and PHP 8.2 to 8.4
Databases
MySQL, MariaDB, PostgreSQL and Redis
Servers
Ubuntu and Debian Linux, Nginx, Apache and Caddy
Interfaces
REST APIs, HTTP and webhooks
Network and mail
DNS, SSL with Let's Encrypt, reverse proxies, mail infrastructure and MX records
Processes
PM2, systemd and Docker
Operations
SSH and multi-server deploys, AWS CLI and S3 backups, cPanel, monitoring and server administration

From code to a running service, step by step

  1. Prepare the server: Ubuntu or Debian, hardened, with only the access the service needs.

  2. Set up the data: MySQL, MariaDB or PostgreSQL, and Redis where speed or queues need it.

  3. Deploy the code: Over SSH, in a repeatable way, not by hand-copied files.

  4. Keep it running: PM2, systemd or Docker manages the process and restarts it if it stops.

  5. Put it on the web: DNS, SSL and an Nginx, Apache or Caddy reverse proxy in front.

  6. Protect it: Automated backups to S3 and restricted access.

  7. Watch it: Monitoring and logs, so a problem is seen before users report it.

  1. Prepare the server: Ubuntu or Debian, hardened, with only the access the service needs.

  2. Set up the data: MySQL, MariaDB or PostgreSQL, and Redis where speed or queues need it.

  3. Deploy the code: Over SSH, in a repeatable way, not by hand-copied files.

  4. Keep it running: PM2, systemd or Docker manages the process and restarts it if it stops.

  5. Put it on the web: DNS, SSL and an Nginx, Apache or Caddy reverse proxy in front.

  6. Protect it: Automated backups to S3 and restricted access.

  7. Watch it: Monitoring and logs, so a problem is seen before users report it.

Proving a change is live, step by step

A 200 status is not proof. Error pages, masked 500 errors and blank pages can all answer 200. A change only counts as done after these steps:

  1. Back up first: Every file I change gets a timestamped backup, so each edit has its own recovery point.

  2. Make the change: With a dated note in the code saying what problem it solves.

  3. Fetch the public page: At its real address, as a visitor would.

  4. Confirm the content: The specific new content is present, and no error signature is.

  1. Back up first: Every file I change gets a timestamped backup, so each edit has its own recovery point.

  2. Make the change: With a dated note in the code saying what problem it solves.

  3. Fetch the public page: At its real address, as a visitor would.

  4. Confirm the content: The specific new content is present, and no error signature is.

Four-step diagram: back up the file, make the change, fetch the public page, confirm the new content.
The check after every live change: back up the file, make the change, fetch the public page, confirm the new content.

A real incident

After a restart that looked successful, a site kept serving old files. A stale Node.js process was still holding the application port. I found it, fixed it, and wrote a kill-and-verify sequence that now runs after every build.

Migrations and upkeep

  • A full migration toolkit for moving servers from CWP to cPanel.

  • Scheduled automation and infrastructure monitoring.

  • Production deployments, incident troubleshooting and service maintenance.

  • A full migration toolkit for moving servers from CWP to cPanel.

  • Scheduled automation and infrastructure monitoring.

  • Production deployments, incident troubleshooting and service maintenance.

Why this matters for AI work

Agents and workflows call providers, databases and other services all day. When I also run the server, a failure can be traced end to end: from the request, through the code and the network, to the provider.

Many services, one operation

I run 17 live services and have managed more than 25 hosting and server environments, with multi-server deploys over SSH, automated backups and monitoring. A group of new services joins that routine instead of each one needing its own.

How bulk orders work, step by step.

Frequently asked questions

Can you work on our servers instead of yours?

Yes. I deploy to the environment you choose, from shared hosting with cPanel to your own Linux servers.

How are backups handled?

Automated, with AWS CLI to S3, and a backup is taken before every change I make on a live system.

Do you use Docker?

Where it helps. Services also run under PM2 or systemd when that is simpler to operate.

More on how I run production

Linux production operations

SSH deploys, Nginx and SSL, PM2 processes, backups and hardening.

Verifying live changes

Why 200 OK is not proof, and what is.

Need someone who can own the whole stack?

From the first server to monitoring in production. Next: how I use AI to write software without losing control.

Section
Services
Reading time
3 min read

Hiring for this kind of work?

Tell me about the role and I will reply by email.

Discuss a role with me