R
Railway

✋|help

How to remove files/folders

Lleodidier_dev8/23/2023
Hi, im new in railway and i have to remove my node_modules folder because i get some issues. It seems like railway dont give ssh and ftp access. How i suppose to do ? thank you
Lleodidier_dev8/23/2023
N/A
BBrody8/23/2023
you would want to put node_modules/ in your .gitignore file
Lleodidier_dev8/23/2023
It's already there, I'd like to delete the one created by the previous build
BBrody8/23/2023
put node_modules/ in your .gitignore file
remove the folder from the repo
push your new .gitignore file
Lleodidier_dev8/23/2023
nodes_modules isnt in my repo. Its only on the server
BBrody8/23/2023
if its not in your repo, then it wont be in the next deployment
storage isnt persistent, so whatever was in your previous build is replaced with whatever is in the repo
Lleodidier_dev8/23/2023
oooh ok, i get it
Lleodidier_dev8/23/2023
maybe you have an idea with this so ?
Lleodidier_dev8/23/2023
i dont have the pb in local and the previous build was good with same package
BBrody8/23/2023
share your repo please
Lleodidier_dev8/23/2023
https://github.com/leodidier-dev/napoleon_api
my last change was fews month ago, i dont get it
BBrody8/23/2023
use railways strapi template
https://railway.app/template/strapi
Lleodidier_dev8/23/2023
its already one
BBrody8/23/2023
^
Lleodidier_dev8/23/2023
hoh i can change, keeping the postgre db ?
BBrody8/23/2023
use the repo as a reference
Lleodidier_dev8/23/2023
if i do that if working great, but a new postregre db is created. I want the old one
BBrody8/23/2023
just delete the new database, and setup the reference variables to the old database
https://docs.railway.app/develop/variables#reference-variables
Lleodidier_dev8/23/2023
its just replace my old database
im so lost
can i get a backup ??
I'm sweating
BBrody8/23/2023
just delete the new database, aka the empty database
let me know when thats done
Lleodidier_dev8/23/2023
I must be misunderstood. Sorry.
I put the references of my old database on my new strapi project. I deployed and it totally overwritten my old data. I've lost everything. I have absolutely no idea what to do.
BBrody8/23/2023
did you have a backup
Lleodidier_dev8/23/2023
no
no backup
im so fucked up
BBrody8/23/2023
chill with the language
Lleodidier_dev8/23/2023
sorry, I'm very stressed
thanks for helping me
BBrody8/23/2023
im just gonna rip off the Band-Aid, youll need to start from scratch
Lleodidier_dev8/23/2023
we cant have a backup from railway ?
BBrody8/23/2023
if you didnt take one, no
Lleodidier_dev8/23/2023
:/
BBrody8/23/2023
im sorry to hear this
Lleodidier_dev8/23/2023
thanks a lot for your help

Looking for more? Join the community!

Recommended Posts
can't access deployed serviceSeems deployment completed when trying to access can't open page displayed. Tried with https://whizsAfter redeploying, I lost the uploaded images in the directoryAfter redeploying, I lost the uploaded images in the directory. My project uses Spring Boot v3.1.2 +help gettiing www subdomain wokringI have had a long discussions with railway team on working of www subdomain on my account ssdo.org.pSimple next.js build faildeployment ID 6b59c99d-f9d1-42bb-9733-67e02909cdc5 Repo: https://github.com/ballermatic/nextjs-shadcDatabase credentialsHello, my Railway starter plan has expired and I want to make a copy of my postgres database but iRunning python script [userbot]Hello so I have this python script that is used to automate something with email account can i use I need help on deploying my development database to production without losing any dataI mistakenly ran the command `npx prisma migrate dev` on my production env but did not accept when tNpgsql.npgsqlException (0x80004005) Failed to connect to 76.76.21.21:5432Hi! im trying to connect to an ASP.Net core 6 to railway.app for the first time and i receive the inDeploying for the first timeHi, I am new to railroad and I am trying to deploy my flask app. I am getting this error: ``` DockI can't seem to be able to use the mariadb app i'm running in my PHP projectI want to be able to connect my mariadb app deployed on railway in my PHP script but when I try to uRailway too slowI have an issue with my railwat app. The app is too slow once update my github project. Making it alTrying to communicate over private network and not workingI have a service that has just private networking enabled and listens on ipv6 (http server). When I How is Redis instance pricing calculatedDoes the per vCPU and per GB memory pricing apply to a Redis database? Would like to know before I svolume permissionsMy docker run script is trying to install as a user owned file into volume mount point but getting pDeployment Issue: ModuleNotFoundError for Flask with Poetry-based ProjectHello, I'm having trouble deploying a Flask app on Railway using Poetry for dependency management. DDoes HTTP response count towards egress quota?I just want to check an external endpoint a few times a day but the response is quite big.Hosting a Directus + NuxtJs project service availableI'm trying to host a Directus service and NuxtJs service but I'm having some trouble getting the froDB StorageHello all, I have a question. How much storage does Railway have when building a server or databaseLogs broken?Hello is there a problem with logs? I am not seeing any build or deploy logs at all, I just see the Minecraft Server isn't working?When I use the minecraft server template and leave everything it will give this error in the logs an