Skip to content

Commit

Permalink
Adapt to deprecations in superfly/flyctl#2733 (#962)
Browse files Browse the repository at this point in the history
* adapt to deprecations in superfly/flyctl#2733

* don't put nested commands in flyctl nav

* Tidy callout language
  • Loading branch information
catflydotio committed Sep 4, 2023
1 parent aa97ee6 commit a2ae162
Show file tree
Hide file tree
Showing 33 changed files with 46 additions and 58 deletions.
4 changes: 2 additions & 2 deletions app-guides/planetscale.html.markerb
Expand Up @@ -306,7 +306,7 @@ If you try deploying the app to Fly and that fails, the most _likely_ reason is

## View your application on Fly

Use `fly open` as a shortcut to open the app's URL in your browser.
Use `fly apps open` as a shortcut to open the app's URL in your browser.

Use `fly logs` to see its log files.

Expand Down Expand Up @@ -336,7 +336,7 @@ abcdefgh app 1 lhr run running 2 total, 2 passing 0 0h1m

To avoid charges you might want to delete the app and the PlanetScale database:

- To delete the sample Fly app (this is irreversible), run `fly destroy the-app-name-here`
- To delete the sample Fly app (this is irreversible), run `fly apps destroy the-app-name-here`
- To delete the PlanetScale database, click the red delete button within the database's _Settings_ tab:

![Screenshot](/docs/images/planetscale_misc_delete.webp)
2 changes: 1 addition & 1 deletion apps/delete.html.markerb
Expand Up @@ -6,7 +6,7 @@ nav: firecracker
order: 110
---

You can scale an App right down to zero Machines if you like. But if you're done with an App forever, you can delete it using `fly destroy <app-name>`.
You can scale an App right down to zero Machines if you like. But if you're done with an App forever, you can delete it using `fly apps destroy <app-name>`.

Once you destroy an App, you can no longer access any part of it, and you'll no longer be charged for any part of it either. This includes Machines, Volumes, IP addresses, Secrets, Docker images, and so on.

Expand Down
2 changes: 1 addition & 1 deletion apps/scale-count.html.markerb
Expand Up @@ -324,4 +324,4 @@ If a Machine is misbehaving (for instance, it's not `stop`ping successfully), yo
fly machine destroy --force 0e286039f42e86
```

<div class="callout"> If you `destroy` a Machine, any volume that it had been using still exists until you either `fly volumes delete` it or `fly destroy` the Fly App it belongs to.</div>
<div class="callout"> If you destroy a Machine with a volume attached, the volume remains intact until you either explicitly destroy the volume or destroy the Fly App it belongs to.</div>
2 changes: 1 addition & 1 deletion django/getting-started/existing.html.md
Expand Up @@ -109,7 +109,7 @@ fly deploy
This will take a few seconds as it uploads your application, verifies the app configuration, builds the image, and then monitors to ensure it starts successfully. Once complete, visit your app with the following command:

```cmd
fly open
fly apps open
```

If everything went as planned you will see your Django application homepage.
Expand Down
2 changes: 1 addition & 1 deletion django/getting-started/index.html.md
Expand Up @@ -253,7 +253,7 @@ fly deploy
This will take a few seconds as it uploads your application, verifies the app configuration, builds the image, and then monitors to ensure it starts successfully. Once complete visit your app with the following command:

```cmd
fly open
fly apps open
```

YAY! You are up and running! Wasn't that easy?
Expand Down
2 changes: 1 addition & 1 deletion elixir/getting-started/existing.html.markerb
Expand Up @@ -29,7 +29,7 @@ deploys the images, and then monitors to ensure it starts successfully. Once com
visit your app with the following command:

```cmd
fly open
fly apps open
```

If all went well, you'll see your Elixir application homepage.
Expand Down
2 changes: 1 addition & 1 deletion elixir/getting-started/index.html.markerb
Expand Up @@ -99,7 +99,7 @@ fly logs
If everything looks good, open your app on Fly.io!

```cmd
fly open
fly apps open
```

### Important IPv6 settings
Expand Down
4 changes: 2 additions & 2 deletions elixir/getting-started/legacy.html.markerb
Expand Up @@ -349,10 +349,10 @@ f617e72a 3 sea run running 1 total, 1 passing 0 1m34s ago

## _Connecting to the App_

The quickest way to browse your newly deployed application is with the `fly open` command.
The quickest way to browse your newly deployed application is with the `fly apps open` command.

```cmd
fly open
fly apps open
```
```output
Opening https://fly-elixir.fly.dev/
Expand Down
4 changes: 2 additions & 2 deletions elixir/getting-started/migrate-from-heroku.html.markerb
Expand Up @@ -25,7 +25,7 @@ From the root of the Elixir app you're running on Heroku, run `fly launch` and s
When that's done, view your app in a browser:

```cmd
fly open
fly apps open
```

There's still work to be done to move more Heroku stuff over, so don't worry if the app doesn't boot right away. There's a few commands that you'll find useful to configure your environment:
Expand Down Expand Up @@ -89,7 +89,7 @@ fly secrets unset HEROKU_DATABASE_URL
Then launch your Heroku app to see if its running.

```
fly open
fly apps open
```

If you have a Redis server, there's a good chance you need to set that up.
Expand Down
2 changes: 1 addition & 1 deletion flyctl/index.html.md
Expand Up @@ -20,7 +20,7 @@ If you are doing anything with Fly.io, you'll need it. We have [flyctl installat
* Create An App: [fly launch](/docs/flyctl/launch/)
* Deploy An App: [fly deploy](/docs/flyctl/deploy/)
* Manage App Secrets: [fly secrets](/docs/flyctl/secrets/)
* View your App: [fly open](/docs/flyctl/open/)
* View your App: [fly apps open](/docs/flyctl/open/)

## Viewing and Monitoring an App

Expand Down
6 changes: 3 additions & 3 deletions hands-on/open-app.html.markerb
Expand Up @@ -7,12 +7,12 @@ toc: false
redirect_from: /docs/hands-on/connecting-to-an-app/
---

The quickest way to connect to your deployed app is with the `fly open` command, which opens a browser on the http version of the site. That http connection will automatically be upgraded to an https secured connection (when using the fly.dev domain) to connect to it securely.
The quickest way to connect to your deployed app is with the `fly apps open` command, which opens a browser on the http version of the site. That http connection will automatically be upgraded to an https secured connection (when using the fly.dev domain) to connect to it securely.

For fun, add `/<your-name>` to `fly open` and your name will be appended to the app's path to add an extra greeting from the hellofly application.
For fun, add `/<your-name>` to `fly apps open` and your name will be appended to the app's path to add an extra greeting from the hellofly application.

```cmd
fly open /fred
fly apps open /fred
```
```out
Opening http://hellofly.fly.dev/fred
Expand Down
2 changes: 1 addition & 1 deletion js/frameworks/deno.html.markerb
Expand Up @@ -139,7 +139,7 @@ ID VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED

## _Connecting to the App_

The quickest way to view your application is to run `fly open` which will open your browser on the URL for your application. Run `fly open /name` to get an extra greeting from the app.
The quickest way to view your application is to run `fly apps open` which will open your browser on the URL for your application. Run `fly apps open /name` to get an extra greeting from the app.

If you want to manually enter a URL to check, remember to replace `empty-sea-2541.fly.dev` with the hostname you got from `fly status` and connect to `http://hellodeno.fly.dev/` where you should find a greeting - it will normally be upgraded to a secure connection. Use `https://hellodeno.fly.dev` to start with a secure connection. Add `/name` and you'll get an extra greeting from the hellodeno application.

Expand Down
2 changes: 1 addition & 1 deletion js/frameworks/partials/_launched.html.erb
@@ -1,4 +1,4 @@
That's it! Run `fly open` to see your deployed app in action.
That's it! Run `fly apps open` to see your deployed app in action.

Try a few other commands:

Expand Down
2 changes: 1 addition & 1 deletion languages-and-frameworks/dockerfile.html.markerb
Expand Up @@ -98,7 +98,7 @@ By default, `fly deploy` builds the image using a remote builder. If you have Do

## _Open Your App_

Run `fly open` to open your deployed app in a browser.
Run `fly apps open` to open your deployed app in a browser.

You're off and running!

Expand Down
2 changes: 1 addition & 1 deletion languages-and-frameworks/dotnet.html.markerb
Expand Up @@ -76,7 +76,7 @@ Deploying hellodotnet
...
```

That's it! Run `fly open` to see your deployed app in action.
That's it! Run `fly apps open` to see your deployed app in action.

Try a few other commands:

Expand Down
Expand Up @@ -57,7 +57,7 @@ Remote builder fly-builder-little-glitter-8329 ready

```

That's it! Run `fly open` to see your deployed app in action.
That's it! Run `fly apps open` to see your deployed app in action.

Try a few other commands:

Expand Down
2 changes: 1 addition & 1 deletion languages-and-frameworks/partials/_launched.html.erb
@@ -1,4 +1,4 @@
That's it! Run `fly open` to see your deployed app in action.
That's it! Run `fly apps open` to see your deployed app in action.

Try a few other commands:

Expand Down
8 changes: 4 additions & 4 deletions languages-and-frameworks/python.html.markerb
Expand Up @@ -299,7 +299,7 @@ This will lookup our `fly.toml` file, and get the app name `hello-fly-flask` fro
Once complete, visit your app with the following command:

```cmd
fly open
fly apps open
```

### View the Deployed App
Expand Down Expand Up @@ -327,12 +327,12 @@ The application has been assigned with a DNS hostname of `hello-fly-flask.fly.de

### Connecting to the App

The quickest way to connect to your deployed app is with the `fly open` command. This will open a browser on the HTTP version of the site. That will automatically be upgraded to an HTTPS secured connection (for the fly.dev domain).
The quickest way to connect to your deployed app is with the `fly apps open` command. This will open a browser on the HTTP version of the site. That will automatically be upgraded to an HTTPS secured connection (for the fly.dev domain).

To specify a path, add `/name` to `fly open` and it'll be appended to the URL as the path and you'll get an extra greeting from the `hello-fly-flask` app:
To specify a path, add `/name` to `fly apps open` and it'll be appended to the URL as the path and you'll get an extra greeting from the `hello-fly-flask` app:

```cmd
fly open /fly
fly apps open /fly
```

Congrats! You have successfully built, deployed, and connected to your first Flask application on Fly.io.
2 changes: 1 addition & 1 deletion languages-and-frameworks/ruby.html.markerb
Expand Up @@ -168,7 +168,7 @@ This will lookup our `fly.toml` file, and get the app name from there. Then `fly
The quickest way to browse your newly deployed application is with the `flyctl open` command.

```cmd
fly open
fly apps open
```
```output
Opening http://helloruby.fly.dev/
Expand Down
Expand Up @@ -102,7 +102,7 @@ Machine started, you can connect via the following private ip
I can check on my app!

```
fly open -a testrun
fly apps open -a testrun
```

…and, I get nothing. (Note that I'm appending `-a` to most of my flyctl commands, because we're not using a `fly.toml` for configuration, and a `fly.toml` in the working directory is where flyctl usually gets the app name that it thinks you're implying when you don't specify one.)
Expand Down Expand Up @@ -219,7 +219,7 @@ https://fly.io/apps/testrun/machines/21781160b41d89

The VM is restarted with the updated configuration.

Now I try `fly open -a testrun` again, and voilà:
Now I try `fly apps open -a testrun` again, and voilà:

![The web app running in the browser. It says 'Hello from a Flask app on Fly.io; Or goodbye'. The word 'goodbye' is a hyperlink.](images/testrun-hello.webp)

Expand Down
14 changes: 1 addition & 13 deletions partials/_flyctl_nav.html.erb
Expand Up @@ -54,15 +54,9 @@
<li>
<%= flyctl_nav_link "Deploy an App", "/docs/flyctl/deploy/" %>
</li>
<li>
<%= flyctl_nav_link "Delete an App", "/docs/flyctl/destroy/" %>
</li>
<li>
<%= flyctl_nav_link "View Fly docs", "/docs/flyctl/docs/" %>
</li>
<li>
<%= flyctl_nav_link "View App history", "/docs/flyctl/history/" %>
</li>
<li>
<%= flyctl_nav_link "View or update App image", "/docs/flyctl/image/" %>
</li>
Expand All @@ -75,12 +69,6 @@
<li>
<%= flyctl_nav_link "Monitor deployments", "/docs/flyctl/monitor/" %>
</li>
<li>
<%= flyctl_nav_link "Move an App", "/docs/flyctl/move/" %>
</li>
<li>
<%= flyctl_nav_link "View App with browser", "/docs/flyctl/open/" %>
</li>
<li>
<%= flyctl_nav_link "Manage Organizations", "/docs/flyctl/orgs/" %>
</li>
Expand Down Expand Up @@ -130,7 +118,7 @@
<%= flyctl_nav_link "Create a token", "/docs/flyctl/tokens/" %>
</li>
<li>
<%= flyctl_nav_link "About Flyctl versions", "/docs/flyctl/version/" %>
<%= flyctl_nav_link "Check flyctl version", "/docs/flyctl/version/" %>
</li>
<li>
<%= flyctl_nav_link "Manage VM instances", "/docs/flyctl/vm/" %>
Expand Down
2 changes: 1 addition & 1 deletion rails/advanced-guides/litefs.html.md
Expand Up @@ -47,7 +47,7 @@ Now we can deploy normally:
fly deploy
```

Once the application has been deployed, running `fly open` will open a
Once the application has been deployed, running `fly apps open` will open a
browser. Add one name.

Return back to your terminal window and run:
Expand Down
4 changes: 2 additions & 2 deletions rails/advanced-guides/machine.html.md
Expand Up @@ -64,7 +64,7 @@ bin/rails deploy
You have now successfully deployed a trivial Rails app Fly.io machines platform.

You can verify that this is running on the machines platform via `fly status`.
You can also run commands like `fly open` to bring your application up in the
You can also run commands like `fly apps open` to bring your application up in the
browser.

Now lets make that application launch more machines.
Expand Down Expand Up @@ -251,7 +251,7 @@ Now deploy the application:
bin/rails deploy
```

If you run `fly open` you will arrive at your application's welcome page.
If you run `fly apps open` you will arrive at your application's welcome page.
Take a note of the URL. Either in the browser or in a command window add
`/job/start`. As a response (either in your browser or terminal window
you will see something like:
Expand Down
2 changes: 1 addition & 1 deletion rails/advanced-guides/phusion-passenger.html.md
Expand Up @@ -141,7 +141,7 @@ exit 0
## Deployment

That's it. As always you deploy your application via `fly deploy` and
can open it via `fly open`. Everything else remains the same. You
can open it via `fly apps open`. Everything else remains the same. You
can use your same Postgre database, redis data store, and any other
secrets you may have set.

Expand Down
2 changes: 1 addition & 1 deletion rails/advanced-guides/terraform.html.md
Expand Up @@ -82,7 +82,7 @@ rerun `terraform` commands directly. You can even `terraform destroy` and
`rm terraform.tfstate` and start over. What's important is `main.tf` already
reflects the name of the latest image.

Also, because a `fly.toml` file was generated, you can use commands like `fly open`,
Also, because a `fly.toml` file was generated, you can use commands like `fly apps open`,
`fly ssh console` and `fly logs`.

## Open issues
Expand Down
2 changes: 1 addition & 1 deletion rails/getting-started/existing.html.md
Expand Up @@ -72,7 +72,7 @@ deploys the images, and then monitors to ensure it starts successfully. Once com
visit your app with the following command:

```cmd
fly open
fly apps open
```

If all went well, you'll see your Rails application homepage.
Expand Down
2 changes: 1 addition & 1 deletion rails/getting-started/fly-rails.html.md
Expand Up @@ -34,7 +34,7 @@ bin/rails fly:launch
If the deployment is successful, you can view your app by running:

```cmd
fly open
fly apps open
```

You should see your application!
Expand Down
6 changes: 3 additions & 3 deletions rails/getting-started/index.html.md
Expand Up @@ -134,7 +134,7 @@ deploys the images, and then monitors to ensure it starts successfully. Once com
visit your app with the following command:

```cmd
fly open
fly apps open
```

That's it! You are up and running! Wasn't that easy?
Expand Down Expand Up @@ -203,7 +203,7 @@ you need to do is the following:

``` shell
$ fly deploy
$ fly open
$ fly apps open
```

Subsequent deploys are quicker than the first one as substantial portions of you
Expand Down Expand Up @@ -306,7 +306,7 @@ There is only one step left, and that is to modify `app/controllers/names_contro
### Deployment and testing

By now it should be no surprise that deployment is as easy as `fly deploy` and
`fly open`. Once that is done, copy the browser URL, open a second browser
`fly apps open`. Once that is done, copy the browser URL, open a second browser
window (it can even be a different browser or even on a different machine), and
paste the URL into the new window.

Expand Down
4 changes: 2 additions & 2 deletions rails/getting-started/migrate-from-heroku.html.md
Expand Up @@ -82,7 +82,7 @@ fly deploy
When that's done, view your app in a browser:

```cmd
fly open
fly apps open
```

There's still work to be done to move more Heroku stuff over, so don't worry if the app doesn't boot right away. There's a few commands that you'll find useful to configure your environment:
Expand Down Expand Up @@ -151,7 +151,7 @@ fly secrets unset HEROKU_DATABASE_URL
Then launch your Heroku app to see if its running.

```
fly open
fly apps open
```

If you have a Redis server, there's a good chance you need to set that up.
Expand Down
2 changes: 1 addition & 1 deletion rails/the-basics/deployments.html.md
Expand Up @@ -14,7 +14,7 @@ fly deploy
When the application successfully deploys, you can quickly open it in the browser by running:

```cmd
fly open
fly apps open
```

If all goes well, you should see a running application in your web browser. You can also view a history of deployments by running:
Expand Down
2 changes: 1 addition & 1 deletion rails/the-basics/turbo-streams-and-action-cable.html.md
Expand Up @@ -120,7 +120,7 @@ There is only one step left, and that is to modify `app/controllers/names_contro
## Deployment and testing

By now it should be no surprise that deployment is as easy as `fly deploy` and
`fly open`. Once that is done, copy the browser URL, open a second browser
`fly apps open`. Once that is done, copy the browser URL, open a second browser
window (it can even be a different browser or even on a different machine), and
paste the URL into the new window.

Expand Down
2 changes: 1 addition & 1 deletion reference/fly-launch.html.md
Expand Up @@ -230,7 +230,7 @@ I can [scale out](/docs/apps/scale-count/) by adding Machines in other regions i
To check that my new web app is actually working, I run

```cmd
fly open
fly apps open
```

to visit my app in the browser!

0 comments on commit a2ae162

Please sign in to comment.