cerwind
Duplicate Services
How do you duplicate services? I have a setup of a single Background Worker, I want to be able to duplicate this service so when I deploy it, my worker requests will go to the duplicate (i.e. backup) server so no jobs get interrupted due to deployment.
18 replies
Django Migrations
I've got a setup of a Django Web Server and a Background Server (for handling queues). Both are looking at the same source code.
When I deploy the Django Web Server it runs:
python manage.py migrate && python manage.py collectstatic --noinput && gunicorn backend.wsgi --timeout 600
as the Custom Start Command and expectedly runs the migrations.
However, my Background Server has the Custom Start Command: python manage.py qcluster
only (to start the cluster), however for some reason it still runs the migrations on the database.
Obviously if you have the same migration running on the database it's going to error because it already exists so this means quite often one of the builds will fail (because the both auto-deploy from main
) due to a migration error. So my question is: "how do I switch off running Django migrations on the Background server or is there something in Railway automatically doing this?"
Project ID: 98a9a750-1944-4447-b83c-8cd90f904626
7 replies
Manually Deploy from Branch?
There doesn't seem to be a clear way to manually deploy from a branch? I had a server that was auto deploying from
main
but I now want to manually deploy new changes instead but I can only redeploy the previous deployment...surely I'm missing something here...?17 replies