Alejandro Capra
Alejandro Capra
RRailway
Created by Alejandro Capra on 8/30/2024 in #✋|help
Caddy proxy connection refused
No description
27 replies
RRailway
Created by Alejandro Capra on 11/9/2023 in #✋|help
Errors in a web deployed
No description
5 replies
RRailway
Created by Alejandro Capra on 10/10/2023 in #✋|help
MONGO DB database
Hello, I want to connect my project with mongodb, but currently I can only connect to the "test" database and I want to create one called production, but I can't This is my url to connect to mongo : mongodb://mongo:********@containers-zone.railway.app:PORT but if i try mongodb://mongo:********@containers-zone.railway.app:PORT/production it does not work
//With railway or env
const uri = process.env.MONGO_URL;

mongoose.connect(uri, {
useNewUrlParser: true,
useUnifiedTopology: true,
});
const port = process.env.PORT || 3001;


app.listen(port, "0.0.0.0", () => {
console.log(`Server started at port ${port}`);
});
//With railway or env
const uri = process.env.MONGO_URL;

mongoose.connect(uri, {
useNewUrlParser: true,
useUnifiedTopology: true,
});
const port = process.env.PORT || 3001;


app.listen(port, "0.0.0.0", () => {
console.log(`Server started at port ${port}`);
});
12 replies
RRailway
Created by Alejandro Capra on 8/8/2023 in #✋|help
Communicate backend with frontend in railway
41 replies