My static website failed to build with no errors
20k-ultra
EMPLOYEEOP

2 years ago

I did railway up from my project on my local machine and was told the build failed in the CLI. When I check the build logs it says the exact same messages. I'm told to check nixpacks.com but I don't know what to look for when I'm there..

View Deploy

Solved

4 Replies

2 years ago

What kind of static site? React with create-react-app, or maybe Vite?

Also, could you please provide your build logs using this - https://bookmarklets.up.railway.app/log-downloader/


20k-ultra
EMPLOYEEOP

2 years ago

It's literally just HTML/CSS/JS. There's no framework to build. I have a go program to be the web server.

I think because I don't have a go.mod or go.sum nixpacks is confused perhaps ? I'm unsure how to tell it to build the go binary and include the assets/ folder.

You reached the start of the range → Mar 24, 2024 12:25 PM

[Region: us-west1]
==============
Using Nixpacks
==============
context: db615934030f1fb2e1f96eda22ae2e64
Nixpacks build failed


Nixpacks was unable to generate a build plan for this app.
Please check the documentation for supported languages: https://nixpacks.com

The contents of the app directory are:

assets/
Makefile
templates/
README.md
server.go
build/

2 years ago

Yeah, nixpacks does Go provider auto-detection based on the existence of a main.go or go.mod file, you can manually set the provider to Go via the service settings and set the applicable build and start commands there too, or you could instead set those 3 options via a nixpacks.toml file - https://nixpacks.com/docs/guides/configuring-builds


20k-ultra
EMPLOYEEOP

2 years ago

Ok, I added a go.mod and builds work now. Thank you!


Status changed to Solved Railway almost 2 years ago


Loading...