Use a VPS for a site that needs its own Node.js or PHP runtime, database, background jobs, or Docker setup. Static pages can often stay on shared hosting. Size the whole stack and decide who will handle HTTPS, updates, backups, and recovery.
Build in CI? Measure memory while the app and its services run on the VPS. If you build on the VPS, repeat with the site and database running. Compare 4 and 8 GB against peak memory use.
All 18 builds of our small Next.js app passed on a local ARM64 VM with 4 and 8 GiB. The app had no database. We checked its pages and JSON endpoint. Test setup and results
Choosing Ubuntu for a VPS
The LTS maintenance window and your application's dependencies matter more than the newest version number. Compare Ubuntu VPS plans
Docker and PostgreSQL starter
Hosting Django or FastAPI? Compare resources for your Python application and database on one VPS. Python VPS hosting
Choose a Docker VPSIf your app needs Auth and Storage alongside PostgreSQL, compare the resources for self-hosted Supabase.
Supabase VPS: setup and restore verification
Key points
- A backend, custom runtime, or staging environment is a stronger signal than page count.
- The buyer owns updates, access control, monitoring, and recovery on a VPS.
- Migration is not complete until DNS, certificates, backups, and rollback have been tested.
The boundary between hosting and a VPS
Shared hosting is often the cleaner choice for a small site with supported software and no special process. The provider handles much of the server layer, and the site owner stays close to files, a database, and a control panel.
A VPS earns its place when the application needs a specific runtime version, a long-running worker, private services, container deployment, or a staging copy that mirrors production.
WordPress, Next.js, and Docker on a VPS
WordPress and WooCommerce need compatible PHP and database versions and HTTPS. Check plugin requirements and account for database work during checkout when estimating load for a store.
Next.js with server rendering needs a running Node.js process. Put a reverse proxy in front of it to handle HTTPS. Include build-time memory if you compile on the VPS. A static export can use a simpler hosting setup.
With Docker, measure the containers together. Include the database, job queue, and reverse proxy, and back up persistent data outside the server.
Plan the whole service, not only the web server
CPU serves requests, RAM holds application and database state, and storage carries both data and logs. The right balance depends on traffic shape and software, so avoid sizing from a generic “website” label.
Recreate a typical traffic peak on a staging copy while background jobs run. Check response times, the lowest available memory (MemAvailable), and any out-of-memory (OOM) events. If memory runs low during a build, compare 8 GB or move the build to CI. Check free disk space before switching traffic.
- runtime and reverse proxy;
- database and durable files;
- background jobs and scheduled tasks;
- monitoring and log retention;
- off-server backup and restore test.
How to migrate Next.js from Vercel to a VPS
If your project uses SSR, API routes or Server Actions, build and run a test copy on a VPS with a compatible Node.js version. Put it behind an HTTPS reverse proxy. For a project without server features, check whether a static export is sufficient.
If you want to deploy from Git through a dashboard, select Coolify in the MOTSELL portal's Applications section after payment if a compatible image is offered. The provider preinstalls the dashboard, but it activates on your first SSH login. Set up the owner account and HTTPS; don't expose initial registration to the internet.
Move the environment configuration. NEXT_PUBLIC_ variables can appear in client code and are set at build time; keep secrets on the server. If you use Vercel Blob or an external database, decide whether to keep those services or migrate them separately. Replace Vercel Cron with your own scheduler; jobs do not automatically follow the app to a new host.
On a temporary hostname, test login, forms, uploads, next/image, cache revalidation and background jobs. Allow for build-time memory. Keep the original deployment until you verify the new environment and data recovery. A self-managed VPS does not include Vercel's automatic preview deployments, CDN or maintenance.
Moving a stateful app from Railway or Render to a VPS
Prepare the source code, start commands, database and persistent files separately. Free Render Postgres databases expire after 30 days and do not include logical backups: make your own export before expiry.
For a Docker Compose project, select Docker CE after payment if a compatible image is offered in the portal. The provider includes Docker Engine and the Compose plugin on Ubuntu 24.04. You still need to move the app and data, configure access and test backups.
Restore the database and files in an isolated test environment. Check workers, schedules and uploads before turning off the old service. For Heroku, also review the web, worker and release processes in your Procfile and use a portable PostgreSQL export. Keep secrets out of your repository. On a VPS you own updates and backups.
Leaving Railway? Export your data before volume retention ends
Railway publishes different volume-retention deadlines: 30 days from Free or Trial expiry, 60 days from Hobby cancellation and 90 days from Pro cancellation. That is not a promise that files remain accessible throughout the period. A service may already be offline. Check the deletion date in your workspace and export as early as possible. The separate 48-hour restoration window for a deleted volume is not extra time you can safely add to the retention deadline.
While you still have access, locate each database and upload directory. Create a portable PostgreSQL export with pg_dump and account for the roles, extensions and configuration your application needs. For SQLite, create a consistent backup instead of copying only the main database file while it is in use. Download the resulting backup and uploaded files to private storage outside Railway. The volume file download command transfers files; it does not make a running database backup consistent. Railway's own volume backups restore only within the original project and environment.
If your trial has already expired and file access fails, check recovery options with Railway before changing plans, applying pending changes or restarting the application. Do not assume a redeployment is safe, free or able to rescue data once deletion starts. Keep the original volume intact. A new VPS cannot bring deleted source data back.
Test the transfer in an isolated destination before switching traffic. Our PostgreSQL restore drill (linked below) restored three synthetic records into a separate Compose volume and verified their content after restart. It was not a live Railway migration. For your own application, also check recent records, uploaded files and application access; only then arrange the final sync and cutover.
Move with a rollback window
Lower DNS TTL before the move, copy the application and data, and test through a temporary hostname. Check HTTPS, login, forms, jobs, and backup restoration before switching traffic.
Plan a final data sync and decide which server can accept writes during the cutover. Keep the old environment available and plan how to preserve new orders and other writes if you roll back.
Order a website VPS from MOTSELL
Choose the configuration and term in the VPS catalog. After paying, pick a location in Germany or Finland and a Linux image in the portal. If capacity is limited, your order may wait in a queue. Your rental term starts when the server is delivered.
MOTSELL provides the server and its management dashboard. You install and maintain the site, database, certificates, and backups.
FAQ
Does a small website need a VPS?
Not necessarily. A static or conventional site may be easier on managed hosting. Choose a VPS when you need a separate runtime, backend, worker, staging environment, or server-level control.
Can a VPS run both a website and an API?
Yes, if the selected resources fit both workloads and the services are isolated sensibly. Monitor memory, storage, and response times instead of assuming one plan fits every stack.
Sources
Technical statements are checked against primary documentation.
- WordPress requirements
- Self-hosting Next.js
- Vercel Cron Jobs
- Docker CE image
- Coolify image and activation
- Vercel Blob Storage
- Railway volume backups
- Railway: volume retention by plan
- Railway: volume deletion and restoration
- Railway: volume file download
- PostgreSQL: pg_dump
- SQLite: Online Backup API
- MOTSELL: PostgreSQL restore drill and test results
- Render free services
- Render PostgreSQL backups
- Heroku Procfile
- Heroku PostgreSQL import and export
- NGINX administration guide
- Ubuntu Server documentation