2 years ago
I'm new here and trying to run a build on the server and getting this message. I'm just running a small html page, for me it should work, does anyone know?
Nixpacks was unable to generate a build plan for this app.
Please check the documentation for supported languages: https://nixpacks.com
3 Replies
2 years ago
If it's just an html page then make sure the page is named "index.html"
or add a file named "Staticfile" in your app root, that way nixpacks knows what kind of app you're building
Status changed to Solved Railway • about 2 years ago
2 years ago
ok I've tried to create a new node.js project in railway and merged up an index.html and script.js.
This is a very small JS script and it works locally.
Do I need to point this to index.html in some way because now it says "Hello world" from default index.js
File looks like this:
const http = require('http');
const PORT = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World!');
});
server.listen(PORT, () => {
console.log(Server running at [http://localhost:${PORT}/](http://localhost:${PORT}/));
});