lotario
lotario
RRailway
Created by lotario on 3/21/2024 in #✋|help
Some PNGs stored in project repo fail to load in production.
No description
10 replies
RRailway
Created by lotario on 3/19/2024 in #✋|help
Deploying a React app with serve (CRA/Vite)
Hey! Looking for a guide that helps with deploying a React app using serve instead of the default config. Thanks!
8 replies
RRailway
Created by lotario on 2/26/2024 in #✋|help
RAM costs of MySQL and Java app compared to a React app.
No description
14 replies
RRailway
Created by lotario on 2/6/2024 in #✋|help
Dockerfile deployment fails
Hello. To deploy a Java 21 app I'm using a dockerfile posted by another Railway user for the same purpose (I've only added my own variables): FROM eclipse-temurin:21-jdk as build COPY . /app WORKDIR /app RUN ./mvnw clean package -DskipTests RUN mv -f target/.jar app.jar FROM eclipse-temurin:21-jre ARG DATABASE_URL ARG DATABASE_USERNAME ARG DATABASE_PASSWORD ARG PORT ENV PORT=${PORT} COPY --from=build /app/app.jar . RUN useradd runtime USER runtime ENTRYPOINT [ "java", "-Dserver.port=${PORT}", "-jar", "app.jar" ] The error in the logs is: #10 [build 4/5] RUN ./mvnw clean package -DskipTests #10 0.263 /bin/sh: 1: ./mvnw: Permission denied #10 ERROR: process "/bin/sh -c ./mvnw clean package -DskipTests" did not complete successfully: exit code: 126 -----
[build 4/5] RUN ./mvnw clean package -DskipTests:
0.263 /bin/sh: 1: ./mvnw: Permission denied ----- Dockerfile:4 ------------------- 2 | COPY . /app 3 | WORKDIR /app 4 | >>> RUN ./mvnw clean package -DskipTests 5 | RUN mv -f target/
.jar app.jar 6 | ------------------- ERROR: failed to solve: process "/bin/sh -c ./mvnw clean package -DskipTests" did not complete successfully: exit code: 126 Project ID: fccc699b-2959-453f-9818-2fc046a08b12 I don't know where to go from here, any help is appreciated! Thanks!
11 replies
RRailway
Created by lotario on 10/24/2023 in #✋|help
How to set server response headers?
Mainly security response headers such as HTTP Strict Transport Security, CSP, X-Frame, Referrer-Policy, etc., something similar as to how they're set for apache/nginx servers. I've had a look through the docs but didn't find anything about this. Thank you!
43 replies
RRailway
Created by lotario on 5/11/2023 in #✋|help
What source do I use for inbound rules of database hosted with AWS RDS?
Hello. I'm hosting a Spring Boot app with a simple crud API and a MySQL DB on AWS RDS. Right now for the deployment to work I'm using 0.0.0.0/0 as a source for the inbound rule on the RDS service, it looks like this: IP Version: IPv4 Type: MYSQL/Aurora Protocol: TCP Port range: 3306 Source: 0.0.0.0/0 and everything works. However, 0.0.0.0/0 allows all connections... what source would I need to add to only allow the Spring Boot app connect to the database? Or does it need to stay as 0.0.0.0/0 ? Thank you!
6 replies