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?
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
Dokku builds application's based on the repository contents, so you'll need to git rm
the files (and commit the removals) from your repository and deploy the updated version in order to ensure they do not end up in the deployed container.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.