Skip to content

Commit

Permalink
Fly.io update
Browse files Browse the repository at this point in the history
No web terminal and dedicated IP fix
More to be done on the first point...
  • Loading branch information
psonnera committed Dec 8, 2023
1 parent 414a4f7 commit 1cc8ee5
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
37 changes: 37 additions & 0 deletions docs/troubleshoot/fly.io.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ If it's too complex for you the web terminal is an easy alternative.

## Use a web terminal

```{warning}
The web terminal feature was removed from Fly.io.
Documentation will be updated to use a computer and flyctl.
```

a) In a new browser tab, [sign-in](https://fly.io/app/sign-in) with your fly.io account,then open a web [terminal](https://fly.io/terminal).
If you just closed the terminal, you might need to wait some time (20 minutes) before you can open a new session (the message below appears).

Expand Down Expand Up @@ -188,3 +193,35 @@ Your app should now only be running on one machine. Check [here](https://fly.io/
<img src="/vendors/fly.io/img/FlyT09.png" width="600px" />

</br>

## Obtain a free shared IP

Apps migrated from Heroku will use a dedicated IP billed $1.90/month.

If you want to run your Nightscout site in Fly.io for free, you will need to release the IP and request a shared IP.

Follow the instructions below. The IP 137.66.11.78 and the site name `example-ns` are examples, yours will be different. Use your own IP and site name.

```
$ flyctl auth login # This will open a browser and ask me to authenticate
$ flyctl app list
NAME OWNER STATUS PLATFORM LATEST DEPLOY
example-ns personal deployed machines 2023-05-26T07:24:51Z
$ flyctl ips list -a example-ns
VERSION IP TYPE REGION CREATED AT
v4 137.66.11.78 public global 2022-09-13T14:17:58Z
v6 3b09:8280:1::3:723c public global 2022-09-13T14:18:00Z
$ flyctl ips release 137.66.11.78 -a example-ns
Released 137.66.11.78 from example-ns
$ flyctl ips allocate-v4 --shared -a example-ns
v4 <new-ip-assigned> shared global
```

You do not need to remember your new IP, just continue using your site name as before: https://yoursitename.fly.dev

</br>
7 changes: 7 additions & 0 deletions docs/vendors/fly.io/migrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ n) If you open this URL you will see it's replicating real time your Heroku Nigh

</br>

```{warning}
Migrated sites will use a dedicated IP, that is a billable feature ($1.90/month).
You will need to release the address and get a shared one. See [here](/troubleshoot/fly.io.md#obtain-a-free-shared-ip) how to proceed.
```

</br>

## Step 2 - Remove the Heroku webhook to Fly.io

a) By defaut Fly.io has made a link to Heroku so that whatever happens in Heroku (updates, variables changes, etc...) is mirrored to Fly.io.
Expand Down
5 changes: 5 additions & 0 deletions docs/vendors/fly.io/new_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ Nightscout should run for free within the [allowances](https://fly.io/docs/about

## Step 2: Open the web terminal

```{warning}
The web terminal feature was removed from Fly.io.
Documentation will be updated to use a computer and flyctl.
```

a) In a new browser tab, open the [terminal](https://fly.io/terminal). Sign-in with the account you created above, if requested.</br>
If you just closed the terminal, you might need to wait some time (20 minutes) before you can open a new session (the message below appears).

Expand Down
7 changes: 4 additions & 3 deletions docs/vendors/railway/new_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ The free plan has been removed Jul 3rd for new users and Aug 1st for existing us
You can easily create a new Railway Nightscout site with a [MongoDB Atlas](/vendors/mongodb/atlas) database or a [Railway MongoDB database](/vendors/railway/database).
**Pros**:
* Nightscout fits in the 5$/month Hobby account
* Easy to deploy or migrate an existing site from Heroku
* Simple to use and troubleshoot
* Nightscout fits in the 5$/month Hobby account
* Easy to deploy or migrate an existing site from Heroku
* Simple to use and troubleshoot
* You can host several Nightscout sites within a single Hobby account
* Can use a native Railway MongoDB database ($)
**Cons**:
Expand Down

0 comments on commit 1cc8ee5

Please sign in to comment.