Aragornz
Aragornz
RRailway
Created by Aragornz on 7/13/2024 in #✋|help
help with dockerfile
I’m trying to deploy an app on Railway, and I need to create both a server and a database. Both the server and the database need to be specific versions. The app server should run Node: v18.12.1 (18.x.x), and the database should be MySQL: 8.0.33. Additionally, the server needs to be Ubuntu: 22.04. I understand that I need to do this using a Dockerfile, but I'm not quite sure how to go about it. Could you please help me? Thank you so much in advance!
6 replies
RRailway
Created by Aragornz on 7/13/2024 in #✋|help
need help with deploy
Hi there! I need a bit of help with a project. I’m trying to deploy an app on Railway, and I need to create both a server and a database. Both the server and the database need to be specific versions. The app server should run Node: v18.12.1 (18.x.x), and the database should be MySQL: 8.0.33. Additionally, the server needs to be Ubuntu: 22.04. I understand that I need to do this using a Dockerfile, but I'm not quite sure how to go about it. Could you please help me? Thank you so much in advance!
3 replies
RRailway
Created by Aragornz on 11/15/2023 in #✋|help
Configuration of Temporary Directories in Railway
Project ID: 402e5707-00a9-409e-95fa-6af61653fe4a I am currently deploying a server application that utilizes Puppeteer (in Dart) on Railway, and I have encountered a challenge related to temporary directories. My application functions flawlessly in a local environment; however, upon deployment in Railway, I am facing a specific issue concerning the creation and usage of temporary directories. The error message I am encountering is as follows: "PathNotFoundException: Creation of temporary directory failed, path = '/tmp' (OS Error: No such file or directory, errno = 2)" This suggests that the Railway environment might not have a '/tmp' directory available or accessible for my application. I am seeking guidance on how to address this issue within the Railway platform. Specifically, my queries are: Temporary Directory Configuration: Is there a way to configure or specify a custom temporary directory for applications running in Railway? If so, could you please provide guidance or documentation on how to implement this? Environment Restrictions: Are there any specific restrictions or configurations in Railway concerning where temporary directories can be created? Understanding any such limitations would be greatly helpful in troubleshooting and configuring my application correctly. Best Practices for Handling Temporary Files: If custom configuration of temporary directories is not feasible, could you recommend best practices or alternative approaches for handling temporary files in Railway-hosted applications? Your assistance in this matter would be immensely appreciated, as it would enable me to ensure smooth operation and deployment of my application on Railway. Thank you in advance for your time and support.
7 replies
RRailway
Created by Aragornz on 10/16/2023 in #✋|help
Webserver
No description
5 replies
RRailway
Created by Aragornz on 7/13/2023 in #✋|help
docker problem
hello everyone... I have deployed a serverpod project (dart) through a docker. but although the container is built correctly, I can't access it from the domain provided by railway. The container should expose port 8080 but I can't get it to work and I'm out of ideas... can someone help me?? I leave you a copy of the dockerfile FROM dart:stable AS build WORKDIR /app COPY . . RUN dart pub get RUN dart compile exe bin/main.dart -o bin/main FROM jenkins/jenkins:lts USER root RUN apt-get update && \ apt-get -y install apt-transport-https \ ca-certificates curl gnupg2 \ software-properties-common && \ curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \ add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ $(lsb_release -cs) \ stable" && \ apt-get update && \ apt-get -y install docker-ce USER jenkins ENV runmode=staging ENV serverid=default ENV logging=normal ENV role=monolith COPY --from=build /runtime/etc /etc COPY --from=build /runtime/lib /lib COPY --from=build /runtime/lib64 /lib64 COPY --from=build /runtime/usr /usr COPY --from=build /app/bin/main /app/bin/main COPY --from=build /app/config/ config/ COPY --from=build /app/generated/ generated/ COPY --from=build /app/web/ web/ EXPOSE 8080 EXPOSE 8081 EXPOSE 8082 CMD app/bin/main --mode $runmode --server-id $serverid --logging $logging --role $role
7 replies