A production deployment to a VPS should be a repeatable release process, not a sequence of improvised commands. This checklist covers the controls to verify before and after deploying a web application, including server access, environment variables, permissions, database changes, reverse-proxy routing, process management, TLS, logs, health checks, monitoring, and rollback. Use it for a new VPS, each significant release, framework upgrades, and post-incident reviews.
Overview
A VPS gives you more control than many shared web hosting plans, but that control also makes deployment decisions your responsibility. A reliable production deployment needs clear ownership of the application, its runtime, its data, and the services that expose it to users.
Before releasing, confirm four things:
- The server is secured and the deployment account has only the access it needs.
- The application can start with a known configuration and compatible runtime versions.
- Database changes, background jobs, files, and external integrations have been considered.
- You can detect failure and return to the last known-good version without guessing.
The exact commands vary by Linux distribution, programming language, framework, reverse proxy, and process manager. Treat command examples as patterns to adapt to your environment rather than universal copy-and-paste instructions. Record the chosen versions and configuration in your repository or operations documentation so another administrator can reproduce the setup.
What to track
1. Application and runtime versions
Record the application commit, dependency lockfile, operating system release, language runtime, package manager, database engine, and process-manager configuration used for the deployment. A release identifier should connect the running service to a specific source revision. Avoid deploying from an uncommitted working directory or relying on an undocumented manual change.
Check that production dependencies install successfully in a clean environment. Run the application’s tests, linting, build step, and any framework-specific checks before connecting the new version to public traffic.
2. Environment variables and secrets
Separate configuration from application code. Review the production values for database connection details, application keys, session settings, allowed origins, email providers, storage locations, and third-party credentials. Do not place secrets in a public repository, client-side bundle, shell history, or broadly readable configuration file.
Maintain a documented list of required variables without recording their secret values. Confirm that missing variables fail clearly during startup rather than causing partial or unsafe behavior after deployment.
3. Users, permissions, and SSH access
Deploy with a dedicated, non-root user where practical. Verify ownership of the application directory, release files, writable upload locations, logs, temporary directories, and service configuration. The web process should not have unnecessary write access to source code or system paths.
Review SSH keys and administrative access before deployment. Remove stale access, use the intended account, and confirm that a second administrative path is available before changing SSH or firewall settings. For a broader baseline, use the hosting server hardening checklist.
4. Database migrations and data changes
Determine whether the release includes schema changes, data backfills, index creation, or changes to required records. Take or verify a usable backup before migration, and understand whether the migration can be reversed. For larger tables, consider whether an operation could lock queries or consume significant disk space.
Deploy changes in a compatibility-safe order when the old and new application versions may overlap. For example, add a nullable field before requiring new code to write it, then remove obsolete behavior only after the transition is complete.
5. Reverse proxy, domain, and TLS configuration
Confirm that the domain resolves to the intended server and that the reverse proxy forwards requests to the correct local application port. Check the host name, request body limits, timeout values, forwarded headers, WebSocket support if required, static-file handling, and separate routes for health checks.
Verify that HTTP-to-HTTPS behavior, certificate coverage, renewal, and application trust settings match the deployment. A certificate can be valid while the application still misidentifies the original protocol or host if forwarded headers are handled incorrectly. Use the DNS troubleshooting reference when a domain or service does not resolve as expected.
6. Process management, logs, and health checks
Run the application under a process manager or service supervisor configured to start on boot, restart according to a deliberate policy, and stop cleanly. Define the working directory, environment source, user, command, and log destinations explicitly. Test a restart rather than assuming the service will return after a reboot.
Provide a lightweight health endpoint that confirms the application process is responding. If the endpoint checks dependencies such as a database, document what a passing response means. Keep detailed diagnostics in logs rather than exposing sensitive information through a public endpoint.
7. Backups, monitoring, and rollback
Know what is backed up: database content, uploaded files, configuration, and any other state that cannot be recreated from source control. A backup is only useful if restoration is understood and periodically tested. The website hosting backup and disaster recovery plan can help organize this review.
Track service availability, error rates, response latency, disk usage, memory pressure, CPU load, and application-specific failures. Set thresholds that prompt investigation rather than creating constant noise. For VPS capacity checks, see the VPS resource monitoring guide.
Define rollback before release. Keep the previous application version available, document how to switch the process manager or symlink to it, and decide what happens if a database migration cannot be reversed. A rollback plan that protects code but not data is incomplete.
Cadence and checkpoints
Use the checklist at several points in the release lifecycle:
- Before every deployment: confirm the release identifier, tests, environment variables, backup status, migration plan, maintenance expectations, and rollback target.
- Immediately after deployment: inspect service status, recent logs, health checks, database connectivity, authentication, key user journeys, background jobs, and error responses.
- After the observation window: compare errors, latency, resource consumption, queue depth, and conversion-critical workflows with the normal baseline. Do not close the release solely because the home page loads.
- Monthly or quarterly: review SSH access, unused accounts, dependencies, certificates, backup results, alert quality, disk growth, and resource trends. The right interval depends on change frequency and risk.
- Every six months or after major platform changes: validate supported runtime versions, reverse-proxy examples, security defaults, process-manager settings, operating-system assumptions, and recovery instructions.
Keep a short deployment record containing the date, release identifier, operator, migration result, observed issues, and rollback decision. This turns recurring deployment work into evidence that can improve the next release.
How to interpret changes
A failed health check after deployment is not automatically an application bug. First separate the layers: DNS and TLS, reverse proxy, process manager, application startup, database or cache connectivity, and external services. Test each layer from the appropriate location rather than changing several settings at once.
A rise in response time with normal CPU may indicate database contention, slow external calls, disk pressure, connection-pool exhaustion, or a changed query. Increased memory use may reflect a leak, a larger workload, a cache change, or a process that is not recycling as expected. Disk growth deserves early attention because logs, uploads, temporary files, and database files can all expand independently.
When comparing releases, use the same time window and workload where possible. Look for changes in error classes, not only total error counts. A small increase in a critical payment, login, or data-write failure may matter more than a larger increase in a low-impact request. Record what changed and what evidence supports the diagnosis.
When to revisit
Revisit this VPS deployment checklist before every production release, new server provisioning, database migration, runtime upgrade, domain move, or change to the reverse proxy. Review it after an outage or security event to identify controls that were missing, unclear, or difficult to execute under pressure.
Schedule a recurring review at least monthly or quarterly, depending on how often the application changes. During that review, remove obsolete instructions and test the parts that are easy to assume but rarely tested: restoring a backup, renewing TLS, rebooting the VPS, starting the service from a clean state, rotating credentials, and completing a rollback.
For the next deployment, create a release note with five lines: what changed, how it was tested, what data is affected, how success will be measured, and how to roll back. Then walk through access, configuration, migration, proxy, process, monitoring, and recovery checks before sending traffic to the new version. This small discipline makes VPS hosting more predictable and gives the team a usable record when conditions change.