JeffPeterson
JeffPeterson
RRailway
Created by JeffPeterson on 10/12/2024 in #✋|help
How to get Caddy, React, and Express to play nice with each other?
So essentially I have a bare minimal application that uses Caddy for reverse proxying, React JS as a frontend, and a Node / Express backend that I would like to deploy to Railway. I am using Dockerfiles for each service as this is a requirement for a future project. The current issue I am running into is probably a noob-level question but I am getting a: CORS header ‘Access-Control-Allow-Origin’ missing error. I did make sure to add cors in the server.js file:
app.use(cors())
app.use(cors())
Also, an aside, I made sure to run this code as per the common errors documentation page for Railway:
app.listen(port, "0.0.0.0", () =>
{
console.log(`listening on port ${port}`)
})
app.listen(port, "0.0.0.0", () =>
{
console.log(`listening on port ${port}`)
})
Here is the project link: invite
8 replies
RRailway
Created by JeffPeterson on 3/21/2024 in #✋|help
Retrieving Django database sessions work locally behind a proxy but fail on Railway?
Does anyone know if or why reading Django (DRF) sessions might fail behind a reverse proxy on Railway such as Caddy or Nginx but work locally? I am using django.contrib.sessions.backends.db in my case.
46 replies
RRailway
Created by JeffPeterson on 3/14/2024 in #✋|help
"Applying 1 Change" Message Hangs Indefinitely
Is it common for the "Applying * Change(s)" message to hang for over 20 minutes? I don't seem to be getting rid of this message. I did trying logging out though and even deleting the service that began to hang.
12 replies
RRailway
Created by JeffPeterson on 3/12/2024 in #✋|help
How to Use Caddy To Serve Static Vite React Frontend and a Gunicorn Django Backend With Docker
No description
185 replies
RRailway
Created by JeffPeterson on 3/9/2024 in #✋|help
How To Put a File That Is Not On Source Control On a Railway Docker Application
Hello I have a question. I would like to know how I can add a file that is not in my GitHub source control to a Django application. Specifically, I want to add a custom settings file for production. Is there any procedure that I can take to make this happen? Thanks!
13 replies