imIgnacio
imIgnacio
RRailway
Created by imIgnacio on 11/21/2023 in #✋|help
Network Egress - MongoDB Atlas
There's one thing I'm not clear about. If I connect my app to my MongoDB database using MONGO_PRIVATE_URL variable and the data gets saved there. How can I access or check this data? I was trying to do that by using MONGO_URL variable in Mongo Compass but I don't see the data created
30 replies
RRailway
Created by imIgnacio on 11/24/2023 in #✋|help
How can I use ENV variables when deploying a Dockerfile?
Thanks!!
15 replies
RRailway
Created by imIgnacio on 11/24/2023 in #✋|help
How can I use ENV variables when deploying a Dockerfile?
# Use a base image, for example, Ubuntu
FROM node:16

# Railway environment
ARG RAILWAY_ENVIRONMENT

# Specify the ENV variables
ARG GOOGLE_MAPS_API_KEY
ARG JWT_SECRET
ARG MONGODB_URI
ARG NIXPACKS_APT_PKGS
ARG NODE_ENV
ARG VITE_APP_MAPBOX_TOKEN

# Set the timezone
ENV TZ=America/Santiago

# Update package lists and install any necessary packages
RUN apt-get update && \
apt-get install -y \
tzdata

# Configure the timezone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /app

# Copy package.json and package-lock.json for the server
COPY server/package*.json ./server/
RUN cd server && npm install

# Copy package.json and package-lock.json for the client
COPY client/package*.json ./client/
RUN cd client && npm install

COPY . .

# Build the server application
RUN cd server && npm run tsc

# Build the client application
RUN cd client && npm run build

# Expose the port on which your app will run
EXPOSE 3000

# Define the default command to start your app
CMD ["npm", "run", "start"]
# Use a base image, for example, Ubuntu
FROM node:16

# Railway environment
ARG RAILWAY_ENVIRONMENT

# Specify the ENV variables
ARG GOOGLE_MAPS_API_KEY
ARG JWT_SECRET
ARG MONGODB_URI
ARG NIXPACKS_APT_PKGS
ARG NODE_ENV
ARG VITE_APP_MAPBOX_TOKEN

# Set the timezone
ENV TZ=America/Santiago

# Update package lists and install any necessary packages
RUN apt-get update && \
apt-get install -y \
tzdata

# Configure the timezone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /app

# Copy package.json and package-lock.json for the server
COPY server/package*.json ./server/
RUN cd server && npm install

# Copy package.json and package-lock.json for the client
COPY client/package*.json ./client/
RUN cd client && npm install

COPY . .

# Build the server application
RUN cd server && npm run tsc

# Build the client application
RUN cd client && npm run build

# Expose the port on which your app will run
EXPOSE 3000

# Define the default command to start your app
CMD ["npm", "run", "start"]
15 replies
RRailway
Created by imIgnacio on 11/24/2023 in #✋|help
How can I use ENV variables when deploying a Dockerfile?
I want to use NIXPACKS_APT_PKGS=gconf-service libgbm-dev libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils from what I understand, they will get installed?
15 replies
RRailway
Created by imIgnacio on 11/24/2023 in #✋|help
How can I use ENV variables when deploying a Dockerfile?
And would the varialbes be used automatically? I mean, just by having ARG VARIABLE is enough to use them app wide? (I don't know docker much) Also, can I use nixpacks in docker?
15 replies
RRailway
Created by imIgnacio on 11/24/2023 in #✋|help
How can I use ENV variables when deploying a Dockerfile?
So for example, It should be ARG REACT_APP_GOOGLE_TOKEN ??
15 replies
RRailway
Created by imIgnacio on 11/21/2023 in #✋|help
Network Egress - MongoDB Atlas
So to be clear, I would need one mongoDB service per environment?
30 replies
RRailway
Created by imIgnacio on 11/21/2023 in #✋|help
Network Egress - MongoDB Atlas
If I have multiple environments within a project. Could I create it as new env? Or I'd need to have one service for each env?
30 replies
RRailway
Created by imIgnacio on 11/21/2023 in #✋|help
Network Egress - MongoDB Atlas
For this internal network, Would I need to create a DB as a new project?
30 replies
RRailway
Created by imIgnacio on 11/21/2023 in #✋|help
Network Egress - MongoDB Atlas
32d3d99f-a53d-4484-8c73-dbb077d6b557
30 replies
RRailway
Created by imIgnacio on 10/22/2023 in #✋|help
Changes in railway CLI?
N/A
6 replies
RRailway
Created by imIgnacio on 9/1/2023 in #✋|help
Does waived hobby plan fee expire?
Good to know 🙂
15 replies
RRailway
Created by imIgnacio on 9/1/2023 in #✋|help
Does waived hobby plan fee expire?
N/A
15 replies
RRailway
Created by Jason Layton on 6/19/2023 in #✋|help
Is railway down?
I have a developer plan, my CI/CD pipeline is working OK, been able to deploy when pushing a commit. However, when building and deploying I'm not able to see any logs. Deploy successful though
18 replies
RRailway
Created by imIgnacio on 3/31/2023 in #✋|help
dayjs timezone invalid date
who*
22 replies
RRailway
Created by imIgnacio on 3/31/2023 in #✋|help
dayjs timezone invalid date
how knows if somebody already has it lol
22 replies
RRailway
Created by imIgnacio on 3/31/2023 in #✋|help
dayjs timezone invalid date
😂
22 replies
RRailway
Created by imIgnacio on 3/31/2023 in #✋|help
dayjs timezone invalid date
I'm trying to deploy a MERN app that has the following structure my-app -client -server any suggestions for the docker file?
22 replies
RRailway
Created by imIgnacio on 3/31/2023 in #✋|help
dayjs timezone invalid date
26e1c30c-65f5-4cb1-87f5-2764df2f3d78
22 replies
RRailway
Created by ×huggi× on 2/13/2023 in #✋|help
Dayjs timezone causes Invalid Date
@×huggi× hi man, how did you patch it?
21 replies