Smack | DM FOR NODE RENT
wkhtmltopdf / qtwebkit
Hi! Can't get wkhtmltopdf to work in my DRF project on railway.
Project: Django DRF
Trying to add: wkhtmltopdf
Works running locally. But when added into the railway.config and ran, I get this error in a loop. Seems like qtwebkit is the issue? Does NixOS (if I understand that is what railway is running with) need another library?
Error:
railway.config:
4 replies
Django | python manage.py flush
Hey,
I have a django rest api that is set up and running. I'm in the need of flushing the database (preferably without removing any tables or migrations).
- Database: Postgres
- Backend: Django
Normally I would just run
python manage.py flush
, how can I run this command on a hosted service? Is there a way to SSH or access the terminal of the service?
Thanks!13 replies
BE/FE Communication
Hey.
I have a project setup with BE(DRF) and my FE(React Vite). I managed to get them both to build and run separately, but for I can't seem to get them to communicate with each other.
FE is running on port 80, and be on port 8000.
Running locally works.
What I've tried so far:
I've added the PORT variable and set it to 8000 on my DRF and 80 on my FE.
I've updated the env variables on my FE to instead point to the internal url to my backend: VITE_BACKEND_URL=https://backend.railway.internal:8000
BE logs says absolutely nothing, stays quiet. No deploy logs updating.
When communicating between two services within the same project, am I not supposed to be able to use this internal url? Am I misunderstanding something here? First time using Railway.
I'm sure my description is ver vague for troubleshooting this so just let me know whatever you need. It's a private repo rn, but can invite to it.
66 replies
BE / FE communication (separate services)
Hey.
I have a project setup with BE(DRF) and my FE(React Vite). I managed to get them both to build and run separately, but for I can't seem to get them to communicate with each other.
FE is running on port 80, and be on port 8000.
Running locally works.
What I've tried so far:
- I've added the PORT variable and set it to 8000 on my DRF and 80 on my FE.
- I've updated the env variables on my FE to instead point to the internal url to my backend:
VITE_BACKEND_URL=https://backend.railway.internal:8000
BE logs says absolutely nothing, stays quiet. No deploy logs updating.
When communicating between two services within the same project, am I not supposed to be able to use this internal url? Am I misunderstanding something here? First time using Railway.
I'm sure my description is ver vague for troubleshooting this so just let me know whatever you need. It's a private repo rn, but can invite to it.4 replies