From 358b59aeafd095be40bc53777cfa759bbb9689ec Mon Sep 17 00:00:00 2001 From: Jerome Gravel-Niquet Date: Fri, 28 May 2021 10:25:02 -0400 Subject: [PATCH] Put Fly.io as #3 in the installation options --- README.md | 62 +++++++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 49ea29a..f90ffe0 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ Contents 3. [Install/Deploy](#install) 1. [Heroku Quick Deploy](#a-heroku-quick-deploy) 2. [Repl.it](#b-replit) - 3. [pipx](#c-pipx) - 4. [pip](#d-pip) - 5. [Fly.io](#e-flyio) + 3. [Fly.io](#c-flyio) + 4. [pipx](#d-pipx) + 5. [pip](#e-pip) 6. [Manual](#f-manual) 7. [Docker](#g-manual-docker) 8. [Arch/AUR](#arch-linux--arch-based-distributions) @@ -91,7 +91,33 @@ Provides: - Supports custom domains - Downtime after periods of inactivity \([solution 1](https://repl.it/talk/ask/use-this-pingmat1replco-just-enter/28821/101298), [solution 2](https://repl.it/talk/learn/How-to-use-and-setup-UptimeRobot/9003)\) -### C) [pipx](https://github.com/pipxproject/pipx#install-pipx) +### C) [Fly.io](https://fly.io) + +You will need a [Fly.io](https://fly.io) account to do this. Fly requires a credit card to deploy anything, but you can have up to 3 shared-CPU VMs running full-time each month for free. + +#### Install the CLI: + +```bash +curl -L https://fly.io/install.sh | sh +``` + +#### Deploy your app + +```bash +fly apps create --org personal --port 5000 +# Choose a name and the Image builder +# Enter `benbusby/whoogle-search:latest` as the image name +fly deploy +``` + +Your app is now available at `https://.fly.dev`. + +You can customize the `fly.toml`: +- Remove the non-https service +- Add environment variables under the `[env]` key + - Use `fly secrets set NAME=value` for more sensitive values like `WHOOGLE_PASS` and `WHOOGLE_PROXY_PASS`. + +### D) [pipx](https://github.com/pipxproject/pipx#install-pipx) Persistent install: `pipx install git+https://github.com/benbusby/whoogle-search.git` @@ -100,7 +126,7 @@ Sandboxed temporary instance: `pipx run --spec git+https://github.com/benbusby/whoogle-search.git whoogle-search` -### D) pip +### E) pip `pip install whoogle-search` ```bash @@ -127,32 +153,6 @@ optional arguments: ``` See the [available environment variables](#environment-variables) for additional configuration. -### E) [Fly.io](https://fly.io) - -You will need a [Fly.io](https://fly.io) account to do this. Fly requires a credit card to deploy anything, but you can have up to 3 shared-CPU VMs running full-time each month for free. - -#### Install the CLI: - -```bash -curl -L https://fly.io/install.sh | sh -``` - -#### Deploy your app - -```bash -fly apps create --org personal --port 5000 -# Choose a name and the Image builder -# Enter `benbusby/whoogle-search:latest` as the image name -fly deploy -``` - -Your app is now available at `https://.fly.dev`. - -You can customize the `fly.toml`: -- Remove the non-https service -- Add environment variables under the `[env]` key - - Use `fly secrets set NAME=value` for more sensitive values like `WHOOGLE_PASS` and `WHOOGLE_PROXY_PASS`. - ### F) Manual Clone the repo and run the following commands to start the app in a local-only environment: