You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blueprints/review-apps-guide.html.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Review apps are a great way to preview new features, changes, and bug fixes. Thi
17
17
18
18
If you've worked with GitHub Actions before and want to jump right in, here are the steps to take:
19
19
20
-
1. Create a new repository secret on your GitHub repository called `FLY_API_TOKEN` and provide it with the returned value of `fly auth token`
20
+
1. Create a new repository secret on your GitHub repository called `FLY_API_TOKEN` and provide it with the returned value of `fly tokens org <ORG NAME>`
21
21
1. Create a new workflow in your project at `.github/workflows/fly-review.yml` and add the following [YAML code](https://gist.github.com/anniebabannie/3cb800f2a890a6f3ed3167c09a0234dd).
22
22
1. Commit and push the changes containing your GitHub workflow.
23
23
@@ -37,10 +37,10 @@ For more details about each step, follow the guide below.
37
37
Your GitHub Action will need a Fly API token to deploy and manage new review apps on Fly.io. You can get this token using the following [flyctl](/docs/flyctl/install/) command:
38
38
39
39
```cmd
40
-
fly auth token
40
+
fly tokens org <ORG NAME>
41
41
```
42
42
43
-
This token is specific to a single Fly.io account and is valid for applications belonging the that account.
43
+
This token is specific to a single Fly.io organization and is valid for applications belonging the that organization.
44
44
45
45
Next, let's save our API token as a secret in our GitHub repository. Visit the Settings tab in your repository, then Secrets and variables → Actions. Alternatively, you can visit `https://github.com/<username or org>/<repository>/settings/secrets/actions`. There, create a new **Repository Secret** called `FLY_API_TOKEN` with the value of your token.
Once you have your Laravel application set up with a github repository, you can configure some GitHub Actions to auto deploy your changes.
46
+
Once you have your Laravel application set up with a github repository, you can configure some GitHub Actions to auto deploy your changes.
47
47
48
48
In this guide, you'll be using `Fly.io`'s very own [GitHub action template here](https://github.com/superfly/flyctl-actions) to help deploy your application.
49
49
50
-
1) Generate a `Fly token` with `fly auth token`
50
+
1) Generate a `Fly token` with `fly tokens deploy`
51
51
52
52
2) Then save your newly generated `FLY_API_TOKEN` in your github repository either through the GitHub Console or GitHub CLI:
Copy file name to clipboardExpand all lines: machines/api/working-with-machines-api.html.markerb
+3-3
Original file line number
Diff line number
Diff line change
@@ -46,15 +46,15 @@ For local development, you might set them as follows, assuming you have flyctl i
46
46
47
47
```bash
48
48
$ export FLY_API_HOSTNAME="https://api.machines.dev" # set to http://_api.internal:4280 when using WireGuard
49
-
$ export FLY_API_TOKEN=$(fly auth token)
49
+
$ export FLY_API_TOKEN=$(fly tokens deploy)
50
50
```
51
51
52
-
The `fly auth token` command returns the token currently in use by `flyctl`. You can also create a new auth token in the Tokens section of the Fly.io dashboard.
52
+
The `fly tokens deploy` command creates a token capable of managing the application in your current directory. See `fly tokens create --help` for information on other types of tokens you can generate.
53
53
54
54
To set an access token as an environment variable on Fly Machines, use a [secret](/docs/apps/secrets/); for example:
55
55
56
56
```cmd
57
-
fly secrets set FLY_API_TOKEN=$(fly auth token)
57
+
fly secrets set FLY_API_TOKEN=$(fly tokens deploy)
0 commit comments