ERROR Building Angular App With Caddyfile
amandalreis
HOBBYOP

2 years ago

I'm facing this error at building phase of my web app:

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 08193686-8a56-4ebe-b739-57b4935473f9::smofp61w7fmymvugy8fomo20c: "/app/dist": not found

I'm using Caddyfile with nixpacks.toml. GitHub Repository: https://github.com/Grupo-1-LAB-SOFTWARE/APP

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

Solved

9 Replies

brody
EMPLOYEE

2 years ago

Everything looks how it should at first glance, please share your build logs -

https://bookmarklets.up.railway.app/log-downloader/


amandalreis
HOBBYOP

2 years ago

Thanks in advance!

Attachments


brody
EMPLOYEE

2 years ago

Very odd, Will take a deeper look into this when I have some free time!


brody
EMPLOYEE

2 years ago

I got it working by changing the initialmaximumError value to 2mb in the angular.json file.

https://angular-test-deploy.up.railway.app/login

That's really all I changed, so let me know if that doesn't work for you!


amandalreis
HOBBYOP

2 years ago

In building phase, it can't find "app/dist" even if we change that maximumError value. Did you create any variable at Railway settings to make it work? Or did you set any config file?


brody
EMPLOYEE

2 years ago

Did you create any variable at Railway settings to make it work? Or did you set any config file?

Nope and nope.

Knew it was too good to be true, i'll dig in more.


brody
EMPLOYEE

2 years ago

Just saw what was wrong and I'm sorry I didn't notice this sooner.. you have set your build command to npm install in the service settings, remove that, please.


Status changed to Solved Railway almost 2 years ago


amandalreis
HOBBYOP

2 years ago

really, tysm. you saved my college project. It's working!! We appreciate your help :) https://app-sisradoc.up.railway.app/login


brody
EMPLOYEE

2 years ago

Happy to help!


Loading...