Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Render 17 min read How-to mediumAdept

Host a Dev Environment on Render with VS Code and Tailscale

A self-hosted cloud dev environment can run on Render as a private service, reached over a Tailscale subnet router and edited with VS Code's Remote-SSH extension. code-server works and installs as a PWA, but it lacks some extensions. OpenSSH fails in Render's unprivileged containers because privilege separation needs CAP_SYS_CHROOT, so dropbear serves SSH instead, with SSH agent forwarding for GitHub authentication. A persistent disk mounted at /home keeps repos, caches and the VS Code binaries across deploys, and a start script recreates authorized_keys at runtime so the mount doesn't overwrite it.

Related posts

  • Use One-Click Deploys for Secure Online VS Code

    Render mediumAdept

    OpenVSCode Server can be deployed on Render by forking Gitpod's repo, adding a minimal Dockerfile that pulls the published image, and defining a persistent disk mount in a render.yaml Blueprint. Once render.yaml exists, a single line of markdown in the README creates a Deploy to Render button for one-click deploys. Securing the browser IDE means adding OAuth2-Proxy in the same Blueprint, with `sync: false` keys so users enter their own secrets in the dashboard at deploy time rather than committing them.

  • Remote Debugging with SSH and VS Code

    Render mediumAdept

    A Node.js process running on Render can be debugged from a local VS Code instance by starting it with `node --inspect=9229` and forwarding the debug port over an SSH tunnel (`ssh -N -L 9229:localhost:9229`). This avoids exposing the inspector port publicly. VS Code attaches through a launch.json "Attach to Remote Program" config with remoteRoot set to the deploy directory. Once attached, breakpoints, variable inspection, call stacks and break-on-exception all work as they do locally, which helps with bugs that only reproduce in the production Linux environment. The Flame Chart Visualizer extension adds live CPU and memory profiling over the same connection.

  • GitHub’s Engineering Team has moved to Codespaces

    GitHub Engineering mediumAdept

    GitHub moved development of its 14-year-old, 13 GB github/github monolith from bespoke macOS laptops to cloud-hosted Codespaces, replacing fragile local environments with disposable, task-per-branch dev environments. Creation time went from 45 minutes to 5 by shallow cloning with background unshallowing and a nightly GitHub Action that builds a mostly-bootstrapped Docker base image for the devcontainer. It then dropped to 10 seconds with prebuilds, pools of fully cloned and bootstrapped codespaces. Centralized config also let them upgrade every engineer from 8-core to 32-core VMs with one line, share live previews via forwarded ports, and support Vim/Emacs users over SSH.

  • How to add Monaco to a Next.js app and securely run untrusted user code

    Deno mediumAdept

    A Next.js 14 app can host a browser IDE by embedding the Monaco editor via @monaco-editor/react, then sending the editor contents to server-side API routes that call the Deno Deploy Subhosting API. One route creates a uniquely named project, one creates a deployment from the submitted code, and one fetches deployment status. The client polls that status until it leaves 'pending' and, on success, loads the deployment URL in an iframe. Isolation of the untrusted code is handed off to Subhosting rather than implemented in the app. Suggested next steps include persisting projects, adding a filesystem and adding authentication.

  • ...It Works Fine Locally

    Render mediumAdept

    A deployment checklist for apps that run locally but fail in the cloud, drawn from Render support cases. Pin language, package manager and dependency versions, and keep secrets and service URLs in environment variables. Add a health check endpoint that touches critical dependencies, build with production dependency groups and precompile assets rather than shipping dev servers, and bind to 0.0.0.0 on $PORT with worker counts tuned to the plan. Treat instance filesystems as ephemeral and use disks, databases or object storage for persistent files, and configure allowed hosts, canonical redirects and HTTPS asset URLs for custom domains.

The quest for software engineering knowledge.

Look:
Layout: