demo
$PORT inconsistently being provided? race condition?
https://railway.app/project/e83cd241-4a9f-417c-9151-eee7ac5d0788/service/62746785-6a46-421e-9422-efd3d7ff869e?id=4c357709-dac5-4cb5-9ada-298507b28d2b
Run code w/ two start commands
npx quartz build --serve --port $PORT
^-- errors with RangeError: options.port should be >= 0 and < 65536. Received type number (NaN).
echo 'port'$PORT && npx quartz build --serve --port $PORT
^-- succeeds40 replies
does railway use .gitignore for "railway up"?
https://stackoverflow.com/questions/76394368/does-railwaycli-ignore-files-defined-in-gitignore
This post says no but yesterday my new sites css was missing. I then removed the .gitignore and it was there.
Project Id: 969389da-3e84-49b8-bf1c-b3483befcbcc
8 replies
Running Sveltekit App inside a monorepo - Build errors - Path not found
I've tried a few different permutations of potential solutions but haven't been able to track down anything that works for me.
I have a project (
3437cb53-716a-4154-9d3b-63def56dd675/service/6ff1c6cf-e318-4926-be63-bfc4720ed8a3
) where I am attempting to build and run a sveltekit app that I have recently moved from it's own repo to a monorepo of mine.
The project is located at $ROOT/projects/thorne-wolf-com/
and I get various errors with various configurations.
Attempt #1
Root Directory: /projects/thorne-wolf-com
, Build Command npm run build
, Start Command node build/index.js
Error: Could not load /app/src/lib/components/ArticlePreview.svelte (imported by src/routes/articles/all/+page.svelte): ENOENT: no such file or directory
Comments: this path does indeed exist but I don't have much visibility into what directory Railway actually clones
Attempt #2
Root Directory: /
, Build Command cd projects/thorne-wolf-com && npm run build
, Start Command node build/index.js
Error: #13 0.303 /bin/bash: line 1: npm: command not found
Comments: I want to specify node as a provider but I can't do it in the root folder of my monorepo because then how do I differentiate my python projects from my node projects. So a root level nix config doesn't help me. Is there an alternative?
Attempt #3
Same as #2 but I specify NIXPACKS_NODE_VERSION=18
in my env variables.
Error: (It installs a bunch of python packages from a separate project) then npm: command not found
Let me know if there is any other info I need to provide for this.8 replies
Docker build failed - PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE
Project ID: d604ae57-452b-43f3-9f81-fb085605c65a
Project has issues pip installing
google-api-python-client
on my prod environment but not the test one. Not sure what leads to this issue.15 replies
Does railway do any modification to incoming request bodies? Failing to validate stripe signatures.
This is a less railway-esque question but I am having some issues developing a stripe integration for a project I have deployed on railway.
Stack
Problem
Expectation
Project ID:
d604ae57-452b-43f3-9f81-fb085605c65a/service/8ac5f605-42bd-4f1a-8df8-42cd98f96173?id=169ff06f-5a92-4daf-95f9-533efdfb1e091
3 replies