Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
326 views
in Technique[技术] by (71.8m points)

docker - How to delete Django migration files in Dokku?

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

In Dokku there is a command to destroy/delete apps

apps:destroy <app>  

Ref link: https://github.com/dokku/dokku/blob/master/docs/deployment/application-management.md


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...