How to remove files/folders

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
33 Replies
Percy
Percy15mo ago
Project ID: N/A
leodidier_dev
leodidier_dev15mo ago
N/A
Brody
Brody15mo ago
you would want to put node_modules/ in your .gitignore file
leodidier_dev
leodidier_dev15mo ago
It's already there, I'd like to delete the one created by the previous build
Brody
Brody15mo ago
put node_modules/ in your .gitignore file remove the folder from the repo push your new .gitignore file
leodidier_dev
leodidier_dev15mo ago
nodes_modules isnt in my repo. Its only on the server
Brody
Brody15mo ago
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
leodidier_dev
leodidier_dev15mo ago
oooh ok, i get it
leodidier_dev
leodidier_dev15mo ago
maybe you have an idea with this so ?
leodidier_dev
leodidier_dev15mo ago
i dont have the pb in local and the previous build was good with same package
Brody
Brody15mo ago
share your repo please
leodidier_dev
leodidier_dev15mo ago
GitHub
GitHub - leodidier-dev/napoleon_api
Contribute to leodidier-dev/napoleon_api development by creating an account on GitHub.
leodidier_dev
leodidier_dev15mo ago
my last change was fews month ago, i dont get it
Brody
Brody15mo ago
use railways strapi template https://railway.app/template/strapi
leodidier_dev
leodidier_dev15mo ago
its already one
Brody
Brody15mo ago
^
leodidier_dev
leodidier_dev15mo ago
hoh i can change, keeping the postgre db ?
Brody
Brody15mo ago
use the repo as a reference
leodidier_dev
leodidier_dev15mo ago
if i do that if working great, but a new postregre db is created. I want the old one
Brody
Brody15mo ago
just delete the new database, and setup the reference variables to the old database https://docs.railway.app/develop/variables#reference-variables
leodidier_dev
leodidier_dev15mo ago
its just replace my old database im so lost can i get a backup ?? I'm sweating
Brody
Brody15mo ago
just delete the new database, aka the empty database let me know when thats done
leodidier_dev
leodidier_dev15mo ago
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.
Brody
Brody15mo ago
did you have a backup
leodidier_dev
leodidier_dev15mo ago
no no backup im so fucked up
Brody
Brody15mo ago
chill with the language
leodidier_dev
leodidier_dev15mo ago
sorry, I'm very stressed thanks for helping me
Brody
Brody15mo ago
im just gonna rip off the Band-Aid, youll need to start from scratch
leodidier_dev
leodidier_dev15mo ago
we cant have a backup from railway ?
Brody
Brody15mo ago
if you didnt take one, no
leodidier_dev
leodidier_dev15mo ago
:/
Brody
Brody15mo ago
im sorry to hear this
leodidier_dev
leodidier_dev15mo ago
thanks a lot for your help
Want results from more Discord servers?
Add your server