diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0501d09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +fly.toml diff --git a/README.md b/README.md index c3a18d9..3f1ac6b 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,22 @@ There are a few provided deployment methods to make setting up easy. Each method Deploying to [fly.io](https://fly.io/) can be easily done using the [`flyctl`](https://fly.io/docs/flyctl/installing/) CLI. ```shell +# view regions here: https://fly.io/docs/reference/regions/ +flyctl launch \ + --generate-name \ + --image w3irdrobot/voltageautounlock:1.0.0 \ + --region ord \ + --no-deploy + flyctl secrets set \ VOLTAGE_NODE_API= \ VOLTAGE_WEBHOOK_SECRET= \ VOLTAGE_WALLET_PASSWORD= -flyctl launch + +flyctl deploy + +# input this hostname into voltage +echo "https://$(flyctl info --host)" ``` ### Docker diff --git a/fly.toml b/fly.toml deleted file mode 100644 index 3224b6c..0000000 --- a/fly.toml +++ /dev/null @@ -1,22 +0,0 @@ -app = "voltage-autounlock" - -[build] - builder = "paketobuildpacks/builder:base" - buildpacks = ["gcr.io/paketo-buildpacks/go"] - -[[services]] - internal_port = 8080 - protocol = "tcp" - - [services.concurrency] - hard_limit = 25 - soft_limit = 20 - - [[services.ports]] - force_https = true - handlers = ["http"] - port = 80 - - [[services.ports]] - handlers = ["tls", "http"] - port = 443