EN · $ USD
VDS and Linux Server Management

How to Set Up a Test and Demo Environment on a Temporary Server

7 min read Updated: Sunucu Atlas technical team

In short

A temporary server is an hourly billed VDS that runs only as long as a client demo or release test needs it. The workflow is simple: spin up an hourly server of the right size, let a ready-made bash script install Docker, the firewall and your app in a few minutes, and point a demo subdomain at it. When you are done, back up the results and delete the server, which stops billing and leaves no messy environment behind.

In this guide
  1. Why a Temporary Server Instead of a Permanent One?
  2. The Overall Workflow: A Temporary Environment in Six Steps
  3. 1. Choose the Right Size
  4. 2. Spin Up the Server and Set Up Your SSH Key
  5. 3. Speed Up Setup with a Script
  6. 4. What to Watch During the Demo or Test
  7. 5. When You Are Done: Stop, Export, Delete
  8. Parallel Environments for Release Testing
  9. Getting Ready for the Next Demo
  10. Get Started Now

Renting a temporary server means running a server only for as long as you need it for a client demo, a release test or a quick trial, then deleting it when the work is done. With an hourly billed VDS, the environment is ready in minutes, and deleting it when you finish brings the cost to zero. This guide covers setting up a demo and test environment from start to finish, speeding up setup with a single script, and safe teardown steps.

Why a Temporary Server Instead of a Permanent One?

Keeping demo and test environments on a permanent server looks appealing but causes problems over time: old versions pile up, configuration drifts away from production, and a machine nobody uses generates an invoice every month. With the temporary server approach, every demo or test is built from scratch with a known script.

  • Clean environment: The same starting point every time, so fewer "it worked on my machine" problems.
  • Realistic conditions: The app is shown on a production-like Linux server and over a real domain name.
  • Cost control: You pay only for the hours the server exists.
  • Security: When the demo ends, the server and all the data on it are gone for good.

If you are not familiar with how hourly billing works, first read What is an hourly VDS, and who is it for?

The Overall Workflow: A Temporary Environment in Six Steps

  1. Choose a server size that fits the job.
  2. Spin up an hourly server and add your SSH key.
  3. Run the setup script to prepare the environment automatically.
  4. Point a subdomain at the server for the demo.
  5. Run the demo or test and save the results.
  6. Export the data, remove the DNS record and delete the server.

1. Choose the Right Size

In a temporary environment, both wasted resources and resource shortages are frustrating. As a rough guideline:

ScenarioSuggested starting pointNote
Static site or small PHP app demo2 CPU, 2 GB RAMEnough for a single container and web server
App + database (Docker Compose)2 CPU, 4 GB RAMRuns comfortably with MySQL/PostgreSQL
Microservices, search engine, queue4 CPU, 8 GB RAMSeveral services running at once
Build-heavy release testing6 CPU or morePrefer a CPU with high single-core speed

For general-purpose demos and training environments, an hourly Intel VDS is a balanced, economical option. For release tests where build and test time matter, an hourly Ryzen VDS can finish the job faster and reduce the total number of billed hours. With the hourly model, picking the wrong size costs little: if resources fall short, delete the server and recreate it on the next plan up.

2. Spin Up the Server and Set Up Your SSH Key

On the order screen, pick a current LTS release such as Ubuntu 22.04 or 24.04. Once the automatic setup finishes, the IP address and login details appear in the panel. Instead of typing a password for every demo, copy the SSH key from your local computer to the server once:

ssh-keygen -t ed25519 -C "demo-ortami"
ssh-copy-id root@SUNUCU_IP

On Windows, ssh-keygen works the same way in PowerShell; if ssh-copy-id is not available, you can add the public key to the ~/.ssh/authorized_keys file by hand.

3. Speed Up Setup with a Script

The real strength of a temporary environment is repeatability. The script below installs Docker on an Ubuntu server, enables the firewall, clones your project and brings it up with Docker Compose. Edit the variables to match your own repository and save it as bootstrap.sh:

#!/usr/bin/env bash
set -euo pipefail

REPO_URL="https://github.com/firmaniz/demo-uygulama.git"
BRANCH="${BRANCH:-main}"
APP_DIR="/opt/demo"

export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get install -y git curl ufw

# Docker (official install script)
curl -fsSL https://get.docker.com | sh

# Firewall: SSH, HTTP and HTTPS only
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw --force enable

# Fetch and start the application
git clone --branch "$BRANCH" --depth 1 "$REPO_URL" "$APP_DIR"
cd "$APP_DIR"
docker compose up -d --build

echo "Kurulum tamamlandı: $(hostname -I | awk '{print $1}')"

You can run the script from your local computer without copying the file to the server:

ssh root@SUNUCU_IP 'bash -s' < bootstrap.sh

# To test a specific version:
ssh root@SUNUCU_IP 'BRANCH=v2.4.0 bash -s' < bootstrap.sh

If you are new to Docker, see the installing Docker on Ubuntu and running your first container guide for the basics. If you use a private repository, set up a read-only deploy key for cloning; do not put your personal access token on a temporary server.

A demo URL with automatic HTTPS

Instead of showing the client an IP address, use a subdomain such as demo.firmaniz.com. In your DNS panel, create an A record for this subdomain pointing to the server IP; keeping the TTL low (for example, 300 seconds) makes IP changes propagate faster for future demos. If you add Caddy to your Compose file, a Let's Encrypt certificate is obtained automatically:

services:
  app:
    build: .
    restart: unless-stopped
  caddy:
    image: caddy:2
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - caddy_data:/data
volumes:
  caddy_data:

The Caddyfile is just a one-line proxy rule (this assumes your app listens on port 3000):

demo.firmaniz.com {
    reverse_proxy app:3000
}

4. What to Watch During the Demo or Test

  • Do not use real customer data. Load anonymized or fake data into the demo environment. Personal data is covered by KVKK (Turkey's Personal Data Protection Law), and temporary environments are often not protected as well as production.
  • Restrict access. If the demo should be open only to the client, add basic auth in Caddy or allow only the client's IP address in the firewall.
  • Keep search engines out. Put a robots.txt containing Disallow: / at the app root; you do not want the demo URL indexed.
  • Measure during release testing. When running tests on the server, write timings and errors to a file; the results must be exported before the server is deleted.
cd /opt/demo
docker compose exec app npm test 2>&1 | tee /root/test-sonucu.log

5. When You Are Done: Stop, Export, Delete

The only way to bring the cost to zero is to delete the server. With most hourly models, powering off does not stop billing, because disk space and resources remain reserved for you. Teardown checklist:

  1. Download test logs, screen recordings and, if needed, a database dump to your local computer:
    scp root@SUNUCU_IP:/root/test-sonucu.log ./
    ssh root@SUNUCU_IP 'cd /opt/demo && docker compose exec -T db pg_dump -U postgres app' > demo-db.sql
  2. Delete the A record for the demo subdomain; otherwise, once the IP address is reassigned to another customer, your domain could point to someone else's server.
  3. Revoke the deploy key you added on GitHub and any temporary API keys.
  4. Delete the server in the panel and check your credit transactions to confirm billing has stopped.

Parallel Environments for Release Testing

Another advantage of temporary servers is that you can run several environments at the same time. For example, you may want to test a new release on Ubuntu 22.04 and 24.04, or with old and new database versions, side by side. When you spin up a separate hourly server for each environment and run the same script with different parameters, tests run in parallel rather than one after another; total time drops and you can compare results side by side.

In this scenario, name your servers carefully (such as test-v240-u2204 and test-v240-u2404) and keep a notes file of which IP belongs to which environment. Deleting all the servers at once when testing is finished keeps a single forgotten machine from running up unnecessary charges. Rehearsing your rollback procedure in these environments also greatly reduces the risk of going live.

Getting Ready for the Next Demo

As long as the script and Compose file live in your repository, the next demo is only a few commands away. Teams usually keep these files in a folder such as deploy/demo and spin up a clean test environment with the same script after every release tag. This discipline also removes the maintenance burden of a permanent "staging" server.

Get Started Now

For most demos and release tests, the FLEX-XEON-2 with 2 CPUs and 4 GB of RAM comfortably runs the app and database together. For heavier build or test workloads, you can move up to the hourly Ryzen plans. All hourly servers come with NVMe storage, a 1G port and automatic setup; you can see current hourly rates on the pricing cards below this article. If you get stuck during setup, open a support ticket with Sunucu Atlas to get help (support is provided in Turkish).

Frequently asked questions

What is the minimum rental period for a temporary server?

Hourly billed servers are charged by the hour; you can spin one up for a demo of a few hours and delete it when you are done. Check the terms on the order page for minimum credit and partial-hour rules.

Is it enough to power off the server after the demo?

Usually not. A stopped server still reserves resources, so billing may continue; to bring the cost to zero, export your data and delete the server.

Can I load a client's real data into the demo environment?

It is not recommended. Personal data is covered by KVKK, Turkey's data protection law; using anonymized or fake data in demo and test environments is safer and creates less liability.

Should I use a domain name or an IP address for the demo?

A subdomain (e.g. demo.firmaniz.com) looks more professional and lets you get a free SSL certificate. Remember to delete the A record when the demo is over.

Do I have to do the setup by hand every time?

No. Once you have a bash script and a Docker Compose file, you can bring a new server to the same state with a single command; this saves billed hours and makes the environment repeatable.

For this guide

Recommended plans

Hourly Intel and Ryzen VDS plans let you spin up a clean server in minutes for client demos and release testing, then delete it when you are done so you pay only for the hours you use.

FLEX-XEON-1

INTEL
Recommended

2 GB RAM

$0.00/hr

+VAT

  • Processor2 CPU
  • Disk30 GB NVMe
  • LocationIstanbul
  • 1G Port
  • Hourly Billing

FLEX-XEON-2

INTEL

4 GB RAM

$0.01/hr

+VAT

  • Processor2 CPU
  • Disk40 GB NVMe
  • LocationIstanbul
  • 1G Port
  • Hourly Billing

FLEX-XEON-3

INTEL

6 GB RAM

$0.01/hr

+VAT

  • Processor2 CPU
  • Disk50 GB NVMe
  • LocationIstanbul
  • 1G Port
  • Hourly Billing

Hourly Intel VDS — tüm paketler Hourly Ryzen VDS — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.