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
Add this to your Coder deployment's environment variables. (e.g. `/etc/coder.d/coder.env`)
22
-
23
-
Or, If Coder is running as a fly.io app, you can set the secret directly:
24
-
25
-
```shell
26
-
flyctl secrets set FLY_API_TOKEN=$(flyctl auth token) -a <coder-app-name>
27
-
# where <coder-app-name> is the name of the Coder app on fly.io
28
-
```
20
+
> If your Coder is also running as a fly.io app, then instead of setting variable `fly_api_token` you can also set a fly.io secret with the name `FLY_API_TOKEN`
21
+
>
22
+
> ```bash
23
+
> flyctl secrets set FLY_API_TOKEN=$(flyctl auth token) --app <your-coder-app-name>
24
+
>```
29
25
30
26
> Read our blog [post](coder.com/blog/deploying-coder-on-fly-io) to learn more about how to deploy Coder on fly.io.
31
27
32
-
3. Run `coder templates create fly-docker-image` to create a template in Coder.
33
-
4. Create a new workspace from the template.
28
+
4. Navigate to the Coder dashboard and create a new workspace using the template.
34
29
35
30
This is all. You should now have a code-server instance running on fly.io.
36
-
37
-
> Note: Change the image and the startup command to suit your needs.
0 commit comments