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: README.md
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -68,16 +68,18 @@ If you encountered an error while waiting for the services to be deployed on Ren
68
68
69
69
# Deploy the app on Fly
70
70
71
-
The hosting service Fly.io does not have one-click hosting like Render and it does not have a free tier that HostedGPT can fit within, that's why Render is our default recommendation. But Fly is also great and we have created a configuration to make it easy for you to deploy there.
71
+
Deploying to Fly.io is another great option. It's not quite one-click like Render and it's not 100% free. But we've made the configuration really easy for you and the cost should be about $2 per month, and Render costs $7 per month after 90 days of free servie so Fly is actually less expensive over the long term.
72
72
73
-
1. You must first install the Fly command-line tool [view instructions](https://fly.io/docs/hands-on/install-flyctl/)
74
-
3. Next run `fly launch --build-only` and say `Yes` to copy the existing fly.toml but note that it will generate the wrong settings
73
+
1. Click Fork > Create New Fork at the top of this repository. Pull your forked repository down to your computer (the usual git clone ...).
74
+
1. Install the Fly command-line tool [view instructions](https://fly.io/docs/hands-on/install-flyctl/)
75
+
3. In the root directory of the repoistory you pulled down, run `fly launch --build-only` and say `Yes` to copy the existing fly.toml, but note that it will generate the wrong settings.
75
76
4.**The settings it shows are INCORRECT** so tell it you want to make changes
76
-
5. When it opens your browser, change the Database to `Fly Postgres`and a name such as `hostedgpt-db` and you can set the configuration to `Development`
77
-
7. Click `Confirm Settings` and close the browser.
78
-
8. The app will do a bunch of build steps and then return to the prompt. Scroll through the output and save the Postgres username & password somewhere as you'll never be able to see those again.
77
+
5. When it opens your browser, change the Database to `Fly Postgres`with a name such as `hostedgpt-db` and you can set the configuration to `Development`.
78
+
7. Click `Confirm Settings`at the bottom of the page and close the browser.
79
+
8. The app will do a bunch of build steps and then return to the command line. Scroll through the output and save the Postgres username & password somewhere as you'll never be able to see those again.
79
80
9. Next run `bin/rails db:setup_encryption[true]`. This will initialize some private keys for your app and send them to Fly.
80
-
10. Finally run `fly deploy`
81
+
10. Run `fly deploy`
82
+
11. It will automatically deploy 2 servers instead of just 1 so after it finishes deploy run `fly scale count app=1` to scale down to 1 machine.
0 commit comments