In a normal world, you can access your application folder and delete files and folders. For Django migration files, the following code can be applied:
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc" -delete
But in Dokku, everything is in a container that I have no idea how to access. So how can I delete migration files?
question from:
https://stackoverflow.com/questions/65915475/how-to-delete-django-migration-files-in-dokku 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…