JeffPeterson
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:
Also, an aside, I made sure to run this code as per the common errors documentation page for Railway:
Here is the project link:
invite8 replies
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
"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
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