Deploy Express backend from server/ directory
joey151314
FREEOP

a month ago

Please deploy my GitHub repository: https://github.com/joey151314/mini-hot-hub

It's a Node.js/Express backend located in the server/ directory.

Root directory should be server.

Start command: node src/index.js

The server listens on process.env.PORT or 3001.

Also set environment variables:

$10 Bounty

3 Replies

Railway
BOT

a month ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway about 1 month ago


Are you not able to deploy it on your own?


have you set your root directory on the service settings?


samuel-hedstrom-stack
PRO

a month ago

Here's how to deploy it yourself on Railway:

New project → Deploy from GitHub repo → select mini-hot-hub

In service settings → set Root Directory to server

Set Start Command to node src/index.js

Go to Variables tab → add:

CACHE_TTL = 600

CLIENT_ORIGIN = https://mini-hot-hub-two.vercel.app

Railway auto-detects the PORT — no need to set it manually.

That's it — it should deploy and be live within a minute.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...