a year ago
I'm moving an existing Django site over the Railway. I want to upload my DB content. I've tried uploading via CLI but
railway run python manage.py loaddata full_site.json
just hangs (I've left it for 1 hour+ for a task that should take a few seconds).
5 Replies
a year ago
Hello,
When running commands locally, you must use the public host and port of the database, you can find this information under the public networking section within your database service settings.
brody
Hello,When running commands locally, you must use the public host and port of the database, you can find this information under the public networking section within your database service settings.
a year ago
Thanks for your reply. I have done that already. Is there anything that could block this process, doing it remotely?
a year ago
Nothing from our side would be blocking it, furthermore the data tab does connect to the database meaning the database is publically accessible.
I think perhaps some code of yours is blocking the import indefinitely.
a year ago
In the end I used pg_restore to upload the database from a dump file.
I was just using a standard Django loaddata but Ive never done this on a remote server so maybe there is some subtlety in Django I'm not aware of.
Status changed to Solved brody • about 1 year ago