
Deploy code-server iPad
Full VS Code in Safari on your iPad, backed by Railway
code-server
Just deployed
/home/coder
Deploy and Host self hosted code-server iPad (VS Code in the Browser for iPad Coding) on Railway
This template runs code-server, the open-source VS Code in the browser, on Railway with a public HTTPS domain you open in Safari on your iPad.
About Hosting code-server iPad open-source software on Railway (self hosted code-server on iPad template)
This template runs the official codercom/code-server:4.141.0 image, pinned by tag and digest, so you get VS Code 1.141.0 in Safari on your iPad.
Railway covers the setup work: the HTTPS domain, the restart policy, the /healthz health check and the persistent volume.
Why Deploy code-server iPad, the GitHub Codespaces alternative on Railway (Railway Free Trial)
Codespaces bills by the core-hour plus storage, which gets hard to predict when you code from an iPad daily. The Railway $5 trial covers a first test run.
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying code-server iPad on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Railway vs Other Hosting Providers and VPS for code-server iPad self hosting
Here is how running this code-server on Railway compares with a general VPS.
| Provider | What You Get with Railway | What You Get with the Other Provider |
|---|---|---|
| DigitalOcean | HTTPS on a public domain, the image pinned by digest, and a persistent volume at /home/coder. | Full root access and fixed droplet pricing, but you manage the OS, Docker and TLS yourself. |
| AWS | A single service set up from the dashboard, with health checks and restarts already wired. | Deep control over networking and storage, but it takes real IAM and networking work to get an iPad-friendly HTTPS endpoint. |
| Hetzner | Managed HTTPS that works with the iPad PWA, with no certificate steps. | Low cost per gigabyte of RAM, but you install Docker, configure a reverse proxy and keep the box patched. |
Railway trades some low-level control for a faster path to a working browser IDE on your iPad.
Common Use Cases for hosted code-server iPad
- Coding on an iPad while travelling: Open the Home Screen icon and you get the full editor, git, and terminal on a plane or train. The heavy work stays on the Railway server.
- A classroom of iPads on a shared image: Each student signs in with their own PASSWORD on the same template. Give each student a separate deployment so home volumes stay apart.
- Quick fixes from a tablet: Patch a typo or a failing test from the iPad, then commit from the integrated terminal. The desktop can stay asleep.
- Builds and tests on the server: Compilers, test suites, and dev servers run in the container, so the iPad only shows output. The tablet stays cool and the battery lasts.
- A second screen for docs: Keep the API reference open in a split tab while you write code beside it. A hardware keyboard and trackpad make this comfortable.
Dependencies for code-server iPad Docker hosted on Railway
This section covers what the template runs and what you need before you start. A Railway volume at /home/coder keeps your projects, settings, and extensions across redeploys.
Deployment Dependencies for Managed code-server iPad Service (Browser IDE)
You need a Railway account (there is a $5 trial) and Safari on the iPad. Copy the generated PASSWORD from the Variables tab before logging in.
Implementation Details for code-server iPad (Using code-server official docker image)
The container starts as root only to hand the volume to the coder user (uid 1000), then drops privileges and runs the upstream entrypoint, so the editor never runs as root.
How does code-server iPad compare against other ways to code on an iPad
code-server vs GitHub Codespaces (GitHub Codespaces Alternative)
- Where it wins for us: You own the box, with a flat monthly infrastructure cost instead of per-core-hour billing.
- Persistence: Repos, extensions and shell history live on one Railway volume under /home/coder.
- Where Codespaces wins: It is hosted for you, with prebuilt dev containers and org policy controls.
code-server vs vscode.dev (VS Code in the Browser Alternative)
- Full terminal: code-server runs a real shell on the server, so git, builds and tests all work from your iPad.
- Where vscode.dev wins: It needs no server and opens in seconds, which suits reading code or small edits.
- Tradeoff: vscode.dev has no real terminal or local toolchain.
code-server vs Blink Shell plus a remote server (Terminal over SSH Alternative)
- Editor, not just a shell: Blink gives you a terminal, while code-server gives you the full VS Code interface in Safari.
- Less client setup: No SSH keys to import into an iPad app, just a Railway domain and a password.
- Where Blink wins: Mosh holds up better on flaky connections, and a native terminal feels snappier for shell work.
code-server vs local iPad editors (On-Device iPad Code Editors)
- Toolchain: Local iPad editors cannot run a full Node, Python or Go toolchain on the device, but code-server can because the work runs on the server.
- Where local editors win: They work offline, start instantly and cost nothing to run.
- Tradeoff: code-server needs a live connection to Railway, and Safari still captures some shortcuts a native app would pass through.
How to use code-server iPad (the OSS browser IDE)?
- Open https://your-code-server-domain in Safari on the iPad. The Railway HTTPS domain already has a valid certificate, so there is nothing to trust manually.
- Log in with the PASSWORD value from the service's Variables tab in Railway.
- Tap the Share button and choose Add to Home Screen. Opening the icon from the Home Screen runs code-server full screen without Safari's address bar, and it handles more keyboard shortcuts than Safari does.
- Open a folder under /home/coder/workspace. This is where your projects live, on the persistent volume.
- Open the integrated terminal, then clone a repo:
coder@code-server:~/workspace$ git clone https://github.com/your-org/your-app.git
coder@code-server:~/workspace$ cd your-app && npm install && npm run dev
- Preview the dev server through the proxy path at https://your-code-server-domain/proxy/3000/, which sits behind the same login.
How to self host code-server iPad on other VPS Services (code-server self hosting guide)
Running code-server on your own VPS works the same way it does on Railway, and the iPad side stays identical. Pick a Linux VPS with at least 2 GB of RAM and point a domain at it.
Clone the Repository
Grab the upstream code-server repo for its docs and install notes.
git clone https://github.com/coder/code-server.git
cd code-server
Install Dependencies
You need Docker and a reverse proxy for HTTPS. Trusted HTTPS matters because iPadOS will not run the progressive web app without it, so skip self-signed certificates.
curl -fsSL https://get.docker.com | sh
sudo apt install -y caddy
Configure Environment Variables
Set a strong password and the workspace folder, then point Caddy at your-domain.
echo "PASSWORD=$(openssl rand -hex 16)" > .env
echo "DEFAULT_WORKSPACE=/home/coder/workspace" >> .env
echo "your-domain { reverse_proxy localhost:8080 }" | sudo tee -a /etc/caddy/Caddyfile
Start the code-server iPad Application
Run the container, reload Caddy, then open https://your-domain in Safari.
docker run -d --name code-server --env-file .env -p 127.0.0.1:8080:8080 -v code-home:/home/coder codercom/code-server:4.141.0
sudo systemctl reload caddy
On Railway, HTTPS, the volume and restarts are handled for you.
Official Pricing of code-server iPad (code-server pricing)
code-server is free and open source under the MIT license, so there is no code-server license fee to pay. You pay flat infrastructure instead of per-hour seat billing.
code-server iPad cloud vs self hosted comparison (Pricing, features, costs, and more)
Hosting code-server on Railway swaps a per-seat cloud bill for one flat server bill. That split matters on an iPad, where you won't want heavy builds running on the device.
Monthly cost of self hosting code-server iPad on Railway
Expect roughly $5 to $15 per month for one always-on code-server at light to moderate use, depending on how much RAM it needs. Railway's $5 trial covers early testing.
System Requirements for Hosting code-server iPad on a VPS
VS Code plus language servers runs comfortably in 1 to 2 GB of RAM. Large TypeScript or Java projects want more, and builds share the same container, so size up if you run them while editing.
Frequently Asked Questions (FAQs)
Does code-server work in Safari on iPad?
Yes. For a cleaner look, add it to your Home Screen so it runs without Safari's address bar.
Do the keyboard shortcuts work on iPad?
Most do with a hardware keyboard, but Safari and iPadOS capture some combinations first.
Does it work offline?
No. The editor runs on the Railway server, so you need a connection to load and edit files. Plan on a working connection for anything beyond reading notes you already cached.
Does the trackpad work?
Yes. A trackpad on a keyboard case or Magic Keyboard works like a mouse for clicking, selecting and scrolling inside the editor.
Can I preview a dev server running on localhost?
Yes. Start your app on port 3000 in the integrated terminal, then open https://your-domain/proxy/3000/ in Safari. It sits behind the same login, so you don't need to open another port.
Is the password safe on a public domain?
It's as safe as any long random secret you keep private.
Template Content
code-server
codercom/code-server:4.141.0