2 years ago
I am trying to deploy Django + tailwind but of course i get the error node.js not found, am i missing something obvious ?
65 Replies
2 years ago
do you have a repo you can share that I can tinker with?
2 years ago
okay then I'd be kinda flying blind, but I'll try
2 years ago
do you need to run some command that builds assets during build?
2 years ago
(assuming you have node available)
2 years ago
can you send your Procfile?
web: python manage.py qcluster --settings=main.settings & python manage.py collectstatic --noinput && uvicorn main.asgi:application --host 0.0.0.0 --port $PORT --log-level debugweb: python manage.py qcluster --settings=main.settings & python manage.py collectstatic --noinput & python manage.py tailwind build && uvicorn main.asgi:application --host 0.0.0.0 --port $PORT --log-level debugGives me a error, about not finding node
2 years ago
okay it's being ran as a start command, got it
2 years ago
what was the outcome of that?
2 years ago
can you send me your build logs -
There you go
2 years ago
hey those are deployment logs
My bad sorry
2 years ago
adding node as a provider wasn't the move, can you remove it and then send me the new build logs, it's not going to fix your issue but I need to first see if your build plan is still messed up
New logs
This does not include the tailwind stuff, as i needed the service up and running and removed that for the time being
2 years ago
looks like those logs don't include what I wanted to see, can you send me the build table from those build logs please
2 years ago
scroll all the way up to the top of the build logs and send me a screenshot of the build table, you will know it when you see it!
2 years ago
okay looks not broke anymore.
try adding this nixpacks.toml file to your project -
[phases.setup]
nixPkgs = ['...', 'nodejs']2 years ago
syncing?
2 years ago
are you looking for node / npm is a specific place?
2 years ago
can you temporarily change the start command to print the node and npm version
2 years ago
yep so node and npm are there for sure, your code is just looking in the wrong place, your code should be looking in PATH
2 years ago
please look into that
2 years ago
that would be incorrect
2 years ago
you should not define a location at all, your code should be looking in PATH on its own
2 years ago
have you removed the start command?
Looks like that fixed that issue now got some mode errors, but sure i can fix those
2 years ago
awsome!
2 years ago
no problem!
2 years ago
we all have to at some point
2 years ago
happy to help!


