Skip to content

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

Railway 5 min read How-to mediumAdept

Deploy Calendso (cal.com) on Railway

Self-hosting Calendso (now cal.com), the open-source Calendly alternative, on Railway takes a one-click template that provisions PostgreSQL plus a Google OAuth client whose JSON goes into the GOOGLE_API_CREDENTIALS variable. The walkthrough covers enabling the Google Calendar API, setting calendar scopes and redirect URIs, pushing the Prisma schema via `railway run`, and creating a user with a BCrypt-hashed password. Moving to production means changing NEXTAUTH_URL (no trailing slash) and the OAuth origins. Using a separate Railway environment keeps local development working, and pinning Node 14 fixes dependency failures.

Assumes: OAuth 2.0 basicsEnvironment variablesNode.js apps

Related posts

  • Deploy Authorizer on Railway

    Railway mediumAdept

    Authorizer, an open-source self-hosted alternative to Auth0, can be deployed on Railway with a one-click template that provisions PostgreSQL and Redis automatically and wires up DATABASE_URL and REDIS_URL. Deployment needs only ADMIN_SECRET and JWT_SECRET, plus OAuth client credentials if social logins are wanted. A React integration follows: install @authorizerdev/authorizer-react, wrap the app in AuthorizerProvider pointed at the Railway endpoint, and use the Authorizer component and useAuthorizer hook for login flows and user state.

  • Deploy a Dart App on Railway, Part 1

    Railway mediumAdept

    A Flutter + Serverpod trivia app is deployed to Railway with a Railway-hosted PostgreSQL database, using the Railway CLI and a custom multi-stage Dockerfile that compiles the Dart server and bundles a Flutter web build into Serverpod's static webserver. Database credentials are wired in through Railway variable references, and migrations are applied in production mode. Because Railway exposes only one port per domain, a Caddy reverse proxy template routes traffic between Serverpod's API port (8080) and web port (8082). A curl request to the example hello endpoint confirms the deployment works.

  • Getting started with Ruby on Rails and Postgres on Supabase

    Supabase mediumAdept

    A Rails app can be wired to a Supabase-hosted Postgres database by scaffolding with `rails new -d=postgresql` and supplying the Supabase pooler connection URI through the `DATABASE_URL` environment variable. The walkthrough generates an Article scaffold, runs migrations, inserts and queries records from the Rails console, and routes the root path to the articles index. Deployment to Fly.io uses `fly launch` with Postgres provisioning set to none, the connection string stored as a Fly secret, and `fly deploy`.

  • Using Github Actions with Railway

    Railway mediumAdept

    Railway deployments can be driven from GitHub Actions instead of the built-in branch-push trigger by creating a project token, storing it as a repository secret (RAILWAY_TOKEN), and running `railway up --service=<id>` inside the official Railway CLI container. A sample workflow triggers on pushes to main, checks out the code and uploads it to Railway. The token must stay secret, but the service ID can be passed openly. The same token approach also works for tasks like running database migrations before deploy or managing pull requests.

  • Building a SaaS application on Railway

    Railway mediumAdept

    A step-by-step tutorial for building a job board SaaS MVP with Remix, PostgreSQL via Drizzle ORM, Clerk authentication and shadcn/ui, then deploying it to Railway. It covers the data model, routes for job seekers and hiring managers, resume uploads stored on disk, and a resource route for downloads. Deployment steps include a custom start command that runs migrations, attaching a persistent volume for resumes, provisioning Postgres with reference variables, and fronting the app with a Cloudflare custom domain for DDoS protection and caching.

The quest for software engineering knowledge.

Look:
Layout: