Hys
how to reference volume in code.
I have code that writes when POST an excel file in the project directory for future referencing... i know databases exists but that's how the client wanted it lol the issue is of course since the service the files are ephiemeral on a redeploy they disappeared i attached a volume but tbh i have no idea on how to write to it
like i'm actually using
const excelDirPath = join(process.cwd(), 'excel');
const excelFilePath = join(excelDirPath, 'calc.xlsx');
and i mounted /excel in the volume does that automagically works or i have to adjust it?
10 replies
Any way to obtain the files of the current build made by CLI
Long story short, dropped coca cola on my pc and i lost the files of the latest dev build of my project, they were not commited and the test build was made via CLI, so i was wondering if there's any way to obtain the files that are being executed right now 🤡
33 replies
Failed to authenticate to mongodb
Deploying a MongoDB database from the UI, automatically creates a database named "test" if you connect to the mongourl that plugin gives you, you can only modify that database, if i try to put /main at the end of the URI i get an authentication failure even tho everything is the same, when deploying the plugin it should allow you to select the name of the database you want instead of creating the "test" database. How can i connect to the "whatsapp" database?
Currently trying:
mongodb://mongo:[email protected]:6204/whatsapp
but this returns the authentication failure
mongodb://mongo:[email protected]:6204
connects successfully but only to the "test" database that was created automatically.
The project is in typescript and i'm using mongoose, didn't had this issue while using ATLAS33 replies
File question
Is there any way for files generated by the app to persist?
We currently have an app where the authentication is stored is generated by user and stored in a file, but when it redeploys after a commit is done the auth of all the users get lost
No, i can't use an external database for this so that's why i'm wondering that
21 replies