I can not deploy a simple app
[phases.setup]
nodeVersion = "20"
nixPkgs = ['nodejs', 'yarn']
[phases.install]
cmds = ['yarn install']
[start]
cmd = 'node server.js'
[variables]
NODE_ENV = 'production'
PORT = '3000'
I also tried Dockerfile, paketo-buildpacks
and I had lots of issues with GO and Node 😦 😦
2 Replies
well, there is basically nothing here to help you—do you have code/code snippets? errors?
From this you posted here I can see that you use yatn to install the dependencies, but there is no build step listed. You might need to specify that you want to use yarn there as well
Other than that, I’m afraid you need to provide more context
I've fixed it
it always needs a build script
"build": "echo "No build step needed" && exit 0"
and
[phases.build]
cmds = ["npm run build"]