shxkm
HOBBYOP
a year ago
Deploying a dockerized Django app (Dockerfile). I need to execute a Python script at src/manage.py before invoking the entry point. Having a hard time understanding how to do that. I tried:
./src/manage.py migrate
5 Replies
a year ago
You should be executing your migration script as a pre deploy step, you can add the step in a service's settings. If you're having trouble finding the file path, it may be helpful to add an ls command to that step to visualize the cwd in the project structure
Yep. That was my problem. One issue is that the step did not emit any logs the first time.
a year ago
!s
Status changed to Solved adam • over 1 year ago