I have a trouble with my environment variables
geovanex24
TRIALOP

a year ago

I'm using node version v20.9.0, which has the env built-in. Here my scripts: "scripts": {
"dev": "nodemon --env-file .env index.js",
"start": "node --env-file .env index.js"
},

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

brody
EMPLOYEE

a year ago

Railway does not create .env files for you, service variables would be injected directly into the deploy.

All this to say, simply remove the --env-file .env portion of your start command.


geovanex24
TRIALOP

a year ago

Thanks for your help!


Status changed to Solved brody over 1 year ago


Loading...