Application does not build (vite)
lkerbage
TRIALOP

2 years ago

In the deploy logs the following is showing:
npm WARN config production Use --omit=dev instead.

qv-bestehen@1.0.0 start
tsc && cross-env NODE_OPTIONS=--max-old-space-size=16384 vite build --mode=production
vite v5.0.11 building for production…
transforming…
(here crashes the build after several seconds).
Every hint is highly appreciated. Thank you.

Solved

9 Replies


lkerbage
TRIALOP

2 years ago

Thank you, brody.
Please find the build logs and the deployment logs hereafter:

https://www.tutorat.ch/deployment-logs.log

https://www.tutorat.ch/build-logs.log
Thank you and best regards, Laurent


brody
EMPLOYEE

2 years ago

if you have any start or build commands set in the service settings please remove them.

https://github.com/brody192/vite-react-template

copy the nixpacks.toml and Caddyfile from this repo into your frontend project.


lkerbage
TRIALOP

2 years ago

OK, thank you. I will try this and come back to you.
Best regards, Laurent


lkerbage
TRIALOP

2 years ago

I put the 2 files (nixpacks.toml and Caddyfile) into the root folder of my application. However, I can not see the "service settings" in the GUI.
If I remove the start and build commands from the scripts-part in my package.json, railway refuses to build.
Thank you for any help and best regards, Laurent


brody
EMPLOYEE

2 years ago

please do not remove the build script from your package.json.

the service settings can easily be accessed by clicking on the settings tab inside of a service.


lkerbage
TRIALOP

2 years ago

Would it be possible that we could communicate via skype or Google meet? I would be pleased to compensate that call. I think that way it would be much more time efficent. What do you think about it?


brody
EMPLOYEE

2 years ago

even chatting over discord in a help thread would be far more time efficient then these forums are.

join our discord https://discord.gg/railway and then open a #Help thread, I'll see you there!


Status changed to Solved Railway almost 2 years ago


lkerbage
TRIALOP

2 years ago

I will join discord as soon as possible. Thank you.


Loading...