𝐗-π₯𝐞𝐦
𝐗-π₯𝐞𝐦
Explore posts from servers
RRailway
Created by 𝐗-π₯𝐞𝐦 on 6/9/2024 in #βœ‹ο½œhelp
Shared variables showing up as <empty string>
I have an application that has a bunch of env variables. I just moved a few of them to a shared variable (via the Promote button). Now they're all showing up as <empty string>. Tried removing them and re-adding them to the service. Same result. See pictures below.
7 replies
RRailway
Created by 𝐗-π₯𝐞𝐦 on 3/13/2024 in #βœ‹ο½œhelp
Nginx with my web application
Hello there! Been trying out a few different services to see where I want to host my web app. Frontend: React Backend: Golang I've got the backend up and running without any issues. I'm having some trouble getting my frond end up and running. I've tried with/without a docker file. Currently with the dockerfile the application is building fine, but crashes. Error:
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/03/12 22:28:26 [emerg] 7#7: host not found in upstream "my_server.railway.internal" in /etc/nginx/nginx.conf:3
nginx: [emerg] host not found in upstream "my_server.railway.internal" in /etc/nginx/nginx.conf:3
...
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/03/12 22:28:26 [emerg] 7#7: host not found in upstream "my_server.railway.internal" in /etc/nginx/nginx.conf:3
nginx: [emerg] host not found in upstream "my_server.railway.internal" in /etc/nginx/nginx.conf:3
...
Dockerfile:
FROM node:14 as build
WORKDIR /client

COPY package.json .
RUN npm install
COPY . .
RUN npm run build

FROM nginx
COPY --from=build /client/build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
FROM node:14 as build
WORKDIR /client

COPY package.json .
RUN npm install
COPY . .
RUN npm run build

FROM nginx
COPY --from=build /client/build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
nginx.conf
http {
server {
server_name my_server.railway.internal;

location / {
root /usr/share/nginx/html;
}

location /api/ {
proxy_pass http://my_server.railway.internal;
}
}
}
events {}
http {
server {
server_name my_server.railway.internal;

location / {
root /usr/share/nginx/html;
}

location /api/ {
proxy_pass http://my_server.railway.internal;
}
}
}
events {}
From what I can tell from the docs and other support tickets something like this should be possible. Just not sure what I'm missing. Thank you for any help!
86 replies