Closed ehmatthes closed 11 months ago
sea
if a region is not found.$ pip install 'django-simple-deploy @ https://github.com/ehmatthes/django-simple-deploy
fly apps region
command for most V2 apps.fly open
is deprecated, replace with fly apps open
: fly open output: Command "open" is deprecated, [use](https://fly.io/docs/flyctl/apps-open/)
fly apps openinstead
fly open
call in test script.fly open
in --automate-all
script.fly deploy
call; that indicates a flakiness on Fly's part, not an issue from simple_deploy?When I run the integration test, it's failing at the fly deploy
call. When I hop into the artifact project, fly deploy
works.
_get_region()
, and see if we can pull up the correct region. Find the right command in the cli to get the region.fly regions -a
is deprecated.fly platform regions
just gives a list of possible regions; no help here.--json
to all fly calls where we need to parse output. #259Current solution, taken from _get_region()
:
- This forum post: https://community.fly.io/t/feature-requests-region-latency-tests/968/6
- Leads to this tool: https://liveview-counter.fly.dev/
- It identifies the region with lowest latency, ie "Connected to iad".
- Solution: request this page, parse for that phrase, select region.
- Return 'sea' if this doesn't work.
Update automate_all
--automate-all
; should fail.
fly open
is still working. I don't trust it to remain available, so updated simple_deploy to use fly apps open -a {app_name}
. This required setting self.app_name
in fly_io.deploy.py.fly open
call.It feels good to have a new release out! I'll delete branches later.
See #255, #220.