christianreyess
christianreyess
RRailway
Created by christianreyess on 8/22/2024 in #✋|help
failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: ex
No description
3 replies
RRailway
Created by christianreyess on 10/11/2023 in #✋|help
Clarification on Plan Hobby Charges and Costs
No description
7 replies
RRailway
Created by christianreyess on 10/9/2023 in #✋|help
Issue with my domain
No description
9 replies
RRailway
Created by christianreyess on 10/8/2023 in #✋|help
Volumen
No description
7 replies
RRailway
Created by christianreyess on 10/8/2023 in #✋|help
Where are my PDFs
Hi everyone I need help. 1.- My app is working but I don't know where I can find these files I'm saving them in /uploads/pdfs but I don't know how I can do to see them all. export const crearPDFURL = async (req, res) => { console.log("Entro aquí"); try { const { id } = req.params; const usuarioExiste = await prisma.usuario.findUnique({ where: { id: parseInt(id), }, }); if (!usuarioExiste) { return res.status(400).json({ msg: "No existe el usuario" }); } const fecha_pago = new Date(); const fechaPagoFormateada = ${fecha_pago.getDate() - 1}/${fecha_pago.getMonth() + 1}/${fecha_pago.getFullYear()}; // Obtén el nombre único del archivo subido desde req.file.filename const archivoSubido = req.file; if (!archivoSubido) { return res.status(400).json({ msg: "Debes subir un archivo PDF" }); } // Genera una URL basada en el nombre único del archivo const pdfUrl = /uploads/pdfs/${archivoSubido.filename}; // Crea un registro en la base de datos con la URL del archivo const usuarioPDFURL = await prisma.pdf_url.create({ data: { fecha_pdf_url: fechaPagoFormateada, usuarioId: parseInt(id), pdf_url: pdfUrl, // Almacena la URL en el campo pdf_url }, }); 2. Can I set up an automatic backup for my MySQL database?. 3. I have three components: the first and second are frontends, and the last one is the backend. I've assigned a domain to the first component, but I'm unable to use that domain in the other components. Is this configuration acceptable? I intended to use the same domain for all components. Thanks you all.
9 replies