R
Railwayβ€’7mo ago
kierzniak

Can not deploy application because of Node 16 EOL

Hello, I can not deploy my application because of error
error: nodejs_16 has been removed as it is EOL.
error: nodejs_16 has been removed as it is EOL.
I can't upgrade my app to te latest version of node. What I can do about that? ProjectID: f2cae2a1-6195-4d38-8485-a87d8f2e7c65 ServiceD: da4635f9-573f-41c8-bc6f-958952630dff
Solution:
then it seems like you dont even need my help! - copy rent.prod.dockerfile into the ecommerce directory (rename applicably) - make your desired changes like removing the ENV stuff to add all the needed variables during build as ARGs (e.g. ARG ENV NEXT_PUBLIC_WEBISTE_URL) - set a service variable RAILWAY_DOCKERFILE_PATH to the name of the dockerfile - set the root directory to /ecommerce...
Jump to solution
18 Replies
Percy
Percyβ€’7mo ago
Project ID: f2cae2a1-6195-4d38-8485-a87d8f2e7c65,da4635f9-573f-41c8-bc6f-958952630dff
kierzniak
kierzniakOPβ€’7mo ago
Brody
Brodyβ€’7mo ago
you would need to write a Dockerfile for your app to use your desired node version
kierzniak
kierzniakOPβ€’7mo ago
Is this document not up to date? https://nixpacks.com/docs/providers/node according to documentation I can use even 14 node version
Node | Nixpacks
App source + Nix packages + Docker = Image
Brody
Brodyβ€’7mo ago
it is far out of date
kierzniak
kierzniakOPβ€’7mo ago
πŸ‘ thank you for assist. Do you have maybe an example of Dockerfile for node app hosted on railway?
Brody
Brodyβ€’7mo ago
wouldnt be specific to railway in the slightest, but if you share your repo i could try writing one for you
kierzniak
kierzniakOPβ€’7mo ago
Can you give me your nickname from github?
Brody
Brodyβ€’7mo ago
brody192
kierzniak
kierzniakOPβ€’7mo ago
I sent you invitation. This repository is monorepo and app which is hosted on railway is in ecommerce directory. You can also find our Dockerfiles in docker directory which we are using on our dev environemnts
Brody
Brodyβ€’7mo ago
oh so you already have Dockefiles ill take a look now master branch?
kierzniak
kierzniakOPβ€’7mo ago
yes master this is nextjs app
Brody
Brodyβ€’7mo ago
the cms. Dockerfile is for ecommerce?
kierzniak
kierzniakOPβ€’7mo ago
There is no dockerfile for ecommerce but rent.prod.dockerfile might be an inspiration. This is also a nextjs app. CMS is Strapi app
Brody
Brodyβ€’7mo ago
does the ecom app need to access anything outside of its own directory?
kierzniak
kierzniakOPβ€’7mo ago
No
Solution
Brody
Brodyβ€’7mo ago
then it seems like you dont even need my help! - copy rent.prod.dockerfile into the ecommerce directory (rename applicably) - make your desired changes like removing the ENV stuff to add all the needed variables during build as ARGs (e.g. ARG ENV NEXT_PUBLIC_WEBISTE_URL) - set a service variable RAILWAY_DOCKERFILE_PATH to the name of the dockerfile - set the root directory to /ecommerce - deploy the changes
kierzniak
kierzniakOPβ€’7mo ago
Great, thank you!
Want results from more Discord servers?
Add your server