tonyghouse
tonyghouse
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
thanks brody
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
coz some times i use old libs for the projects there i cant resolve have to go with --legecy-deps command
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
yes but in future if i need
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
is there any documentation or tutorial where we can access variables from railway and set it in during docker file. helpful if you can share if you have
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
but why env not worked during docker still bugs me
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
just nixpacks is used to build
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
deleted the docker file
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
seems deployment takes time to go live
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
able to access variables
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
yes wait its accessible now
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
build is successful app is deployed but variables are not accessible
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
its weird
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
used nix packs but still variables are not accesible
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
so there is no way to access variables in docker?
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
used docker for java project there i was able to access variables from railway
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
but why variables are not accessible in env
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
using nixpacks but due to some dependencies i have to use --legecy-deps commnad so changed deployment to docker
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
42 replies
RRailway
Created by tonyghouse on 8/18/2023 in #✋|help
Unable to read env variables in react vite project (build using Dockerfile)
FROM node:18.16-alpine


WORKDIR /app

COPY . /app

RUN rm -rf node_modules

RUN npm install -g typescript

RUN npm install --legacy-peer-deps

RUN npm run build

COPY . .

EXPOSE 8080

CMD ["npm", "start"]
FROM node:18.16-alpine


WORKDIR /app

COPY . /app

RUN rm -rf node_modules

RUN npm install -g typescript

RUN npm install --legacy-peer-deps

RUN npm run build

COPY . .

EXPOSE 8080

CMD ["npm", "start"]
42 replies