Deploying a django site that works in a devcontainer to Railway
Hi folks. I must confess to being a little new to this whole infra stuff. I know I can use templates from Railway but I have an existing Github repo with a Django project and I want to deploy it to Railway. It seems to build fine but will not deploy. It has a Docker file used for the devcontainer. What pre-requisites are there to get a Github Django project with Docker file to deploy to Railway?
27 Replies
Project ID:
19eba2f9-bb53-431d-bdd9-186db8587fca
19eba2f9-bb53-431d-bdd9-186db8587fca
send the dockerfile?
and the error you get when deploying
Github repo is here
GitHub
GitHub - jvanlint/codespace_test
Contribute to jvanlint/codespace_test development by creating an account on GitHub.
thanks for the help....would love to know what I am not doing or doing wrong
like I said....it works out of the box for a vscode devcontainer.
vscode devcontainerwhats that?
It is basically a docker image created by vscode that also lets you work in a vscode instance in the container
https://code.visualstudio.com/docs/devcontainers/containers
gotcha
heres a better dockerfile
and then you want to bring the contents of the
/optics
folder out into the root of the repook...I'll give that a try. Thanks
So I'm close....but still no cigar
It seems to build, then deploy
can you make the repo public again?
This is deployment log
DEBUG: True
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
No migrations to apply.
but this is the web browser when I go to the site
It's like it's crashing but no indication in the logs it is
public repo?
let me get that to you
5 secs
GitHub
GitHub - jvanlint/optics-railway
Contribute to jvanlint/optics-railway development by creating an account on GitHub.
Obviously...if I remove the Docker file it will build and deploy fine using the railway.json
deploy logs please https://bookmarklets.up.railway.app/log-downloader/
and now build logs please
well im stumped
phew...glad its not just me
thanks for trying