-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from picture-pro/33-prototype-deployment-process
33 prototype deployment process
- Loading branch information
Showing
8 changed files
with
115 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
SURREALDB_WS_URL=localhost:8000 | ||
SURREALDB_ROOT_USER= | ||
SURREALDB_ROOT_PASS= | ||
|
||
# only for app | ||
SURREAL_WS_URL=localhost:8000 # `picturepro-mono.internal:8000` inside fly | ||
# for both surreal and app | ||
SURREAL_USER= | ||
SURREAL_PASS= | ||
|
||
# only for app | ||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION= | ||
|
||
# only for QR codes | ||
APP_BASE_URL= | ||
|
||
# only for deploy | ||
FLY_API_TOKEN= | ||
|
||
# only for app, necessary in fly | ||
LEPTOS_OUTPUT_NAME=site | ||
LEPTOS_SITE_ROOT=site | ||
LEPTOS_SITE_PKG_DIR=pkg | ||
LEPTOS_SITE_ADDR=0.0.0.0:3000 | ||
LEPTOS_RELOAD_PORT=3001 | ||
|
||
# only for app, cannot be `/tmp` in fly | ||
TMPDIR=/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# fly.toml app configuration file generated for picturepro-mono on 2024-02-23T15:08:05-06:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = "picturepro-mono" | ||
primary_region = "dfw" | ||
kill_signal = "SIGINT" | ||
kill_timeout = "5s" | ||
|
||
[processes] | ||
app = "site-server" | ||
surreal = "surreal start --log=info --auth --bind '[::]':8000 file:/data/srdb.db" | ||
|
||
[[mounts]] | ||
source = "surreal_data" | ||
destination = "/data" | ||
initial_size = "1gb" | ||
processes = ["surreal"] | ||
auto_extend_size_threshold = 80 | ||
auto_extend_size_increment = "1gb" | ||
auto_extend_size_limit = "5gb" | ||
|
||
[http_service] | ||
internal_port = 3000 | ||
auto_stop_machines = true | ||
auto_start_machines = true | ||
min_machines_running = 0 | ||
processes = ["app"] | ||
[http_service.concurrency] | ||
type = "requests" | ||
hard_limit = 250 | ||
soft_limit = 200 | ||
|
||
[[http_service.checks]] | ||
interval = "30s" | ||
timeout = "5s" | ||
grace_period = "10s" | ||
method = "GET" | ||
path = "/" | ||
|
||
[checks] | ||
[checks.surreal_check] | ||
processes = ["surreal"] | ||
grace_period = "30s" | ||
interval = "15s" | ||
method = "get" | ||
path = "/status" | ||
port = 8000 | ||
timeout = "10s" | ||
type = "http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters