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