ehmatthes / django-simple-deploy

A reusable Django app that configures your project for deployment
BSD 3-Clause "New" or "Revised" License
307 stars 26 forks source link

Refactor fly_io/deploy.py #269

Closed ehmatthes closed 9 months ago

ehmatthes commented 10 months ago

The work to stabilize Fly deployments introduced more complex behavior in some methods, and introduced new methods. I can make a release without refactoring, because that work had external changes. This should be only internal changes, so I can do this work as a separate set of tasks.

ehmatthes commented 10 months ago

Documentation

ehmatthes commented 10 months ago

Remaining from #101

ehmatthes commented 10 months ago

Working notes

ehmatthes commented 10 months ago

Refactoring _get_deployed_project_name()

ehmatthes commented 10 months ago

Refactor _create_flyio_app() using --json

ehmatthes commented 10 months ago

Refactor _create_db()

ehmatthes commented 10 months ago

Refactor validate_platform()

Current logic around creating an app with --automate-all was inconsistent. _get_deployed_project_name() was not running for automated runs. _get_deployed_project_name() can do the work of creating an app during automated runs.

ehmatthes commented 10 months ago

Refactor _add_dockerfile()

ehmatthes commented 9 months ago

Closed by #282.