0x5CD59377
0x5CD59377
RRailway
Created by 0x5CD59377 on 2/8/2024 in #✋|help
Docker application not finding env var set in service's Variables tab
Project ID: 21dcd679-2ad7-463a-81e8-ed549f5d467b I have a dockerized Vite application that needs to read a var VITE_MY_ENV_VAR that i've set to value 'the-value' in the Variables tab of my Railway app's service. However, the application cannot find the variable during run time (printing it's value with console.log returns undefined). The application does successfully read the PORT variable automatically set by Railway both at build time (during an EXPOSE $PORT step) and runtime (during gunicorn --host 0.0.0.0 --port $PORT app:app). What might be causing my application to not find the VITE_MY_ENV_VAR variable?
13 replies
RRailway
Created by 0x5CD59377 on 2/7/2024 in #✋|help
yarn install encountering network issues
I have a RUN yarn install line in my Dockerfile but I'm getting the following log output:
#17 [build 4/6] RUN yarn install

#17 258.4 info There appears to be trouble with your network connection. Retrying...
#17 [build 4/6] RUN yarn install

#17 258.4 info There appears to be trouble with your network connection. Retrying...
I'd imagine this might be related to the current partial outage? Project ID: 21dcd679-2ad7-463a-81e8-ed549f5d467b
6 replies