How to deploy slash migrate procfiles to nixpacks.

Hello, I would like to know how to convert my procfile with just a single line: web: node backend/server.js to a nixpack since I already know that procfiles are going to be removed in the future.
14 Replies
angelo
angelo3y ago
Didn't see this! So ideally, not a thing. Nixpacks reads procfiles.
Talmax
TalmaxOP3y ago
@Angelo I got a notification that they are going to discontinue it so I need to migrate it to nixpacks
angelo
angelo3y ago
Yep, whats the error do you get if any?
Talmax
TalmaxOP3y ago
@Angelo I just don't know how to migrate it to use it. I have this error: {"message":"ENOENT: no such file or directory, stat '/app/frontend/build/index.html'","stack":null}
angelo
angelo3y ago
Project ID?
milo
milo3y ago
@talmax please share your project id
Talmax
TalmaxOP2y ago
I think this is the ID 018934d8-0338-4167-a108-ceb1ef8e812d @Angelo or how do I find it?
angelo
angelo2y ago
This is correct!
Percy
Percy2y ago
Flagging this thread. A team member will be with you shortly.
angelo
angelo2y ago
Going to get to this after my queue
Talmax
TalmaxOP2y ago
Ok It is a React App, so I guess the problem is probably I don't know how to configure it correctl
Talmax
TalmaxOP2y ago
Just so you have some references. Here is my Procfile looks like: web: node backend/server.js and file structure
Talmax
TalmaxOP2y ago
I don't know if it's helpful -------------- Ok, so I might have figured out a solution, and I think it has to do with the "heroku-postbuild" command. Since I am using heroku, it recognizes the heroku-postbuild package and built the site, but since railway doesn't have this, that is the error. therefore not working I also have a $PORT error but I have it in the ENV
Talmax
TalmaxOP2y ago
Stack Overflow
Heroku no such file or directory, stat '/app/client/build/index.html'
I have been struggling with this error for literally almost three weeks now, and it's honestly driving me crazy. I have been using Heroku to deploy my projects for over a year now, and I have never
Want results from more Discord servers?
Add your server