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"
},
ⓘ Deployment information is only viewable by project members and Railway employees.
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.
Status changed to Solved brody • over 1 year ago

