Cache mount ID is not prefixed with cache key
Running a project on Docker, project runs locally, but not here. Here's how my Dockerfile looks like:
I'd like to avoid sharing my repo if that's possible.
12 Replies
Project ID:
15e39893-903d-4d7a-97e0-f6f37a9da580
please read this docs section - https://docs.railway.app/guides/dockerfiles#cache-mounts
app should be running on 0.0.0.0:80 if i want it running on a domain, correct?
please read this docs page - https://docs.railway.app/guides/fixing-common-errors
oh really sorry, didn't see that the env for port doesnt show, that'll be all, thanks for your help
please read the last link a little more carefully, you do not want to be setting your own PORT variable as the documentation clearly recommends against that method
yeah, i just made it use .env, i havent set a custom port variable
where does .env come into play here?
const port = process.env.PORT
uses the host's env not mine, i havent set a custom PORT variable
The PORT variable is automatically injected by Railway into your application's environment.
i was confused by this because it didn't show under variablesokay then you should be all set
thanks for your help
no problem