R
Railway10mo ago
Oliver_

Nixpacks build failed on frontend app

Hi! Ive been wokring on a app that uses Python as a API server and frontend using HTML and JS. But when I deploy the githup repo for the frontend I keep getting Nixpacks build failed. My project Id is : d049f9d9-e78d-469c-92db-07275e5ffd44
Solution:
For such a simple frontend, I agree with Fragly. However, there is a way to get this to work. rename your html file to index.html, then push your code. If that doesn’t work, add all your frontend files to another subfolder, then push
Jump to solution
12 Replies
Percy
Percy10mo ago
Project ID: d049f9d9-e78d-469c-92db-07275e5ffd44
Fragly
Fragly10mo ago
Mind sending your build logs using this tool? https://bookmarklets.up.railway.app/log-downloader/
Fragly
Fragly10mo ago
seems you're trying to host nothing but your frontend on Railway, railway can't really do that for you that way you'll need a backend that'll serve your frontend to users My recommendation is to host this on github pages, that way your hosting for your frontend will be completely free
Oliver_
Oliver_10mo ago
I think I have my backend on Railway, however I havent started connecting them, as Im using flask and cors
Solution
Adam
Adam10mo ago
For such a simple frontend, I agree with Fragly. However, there is a way to get this to work. rename your html file to index.html, then push your code. If that doesn’t work, add all your frontend files to another subfolder, then push
Adam
Adam10mo ago
Adam
Adam10mo ago
following this guide but ideally your backend should be serving these files or you should have more of a frontend infrastructure than just an index.html
Oliver_
Oliver_10mo ago
It worked with using index.html instead Thanks a lot!
Fragly
Fragly10mo ago
dang I didn't know nixpacks had that NOWAY
Adam
Adam10mo ago
I googled no prob!
Brody
Brody10mo ago
it's like you forgot our conversation last night lol
Want results from more Discord servers?
Add your server