diff --git a/docs/deployment.md b/docs/deployment.md index ca68877..d748be3 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -1,3 +1,11 @@ +# Initial setup + +To create a new app, use the following two commands: +``` +fly launch --name evs-production --org opportunity-hack -r sjc +fly deploy --app evs-production +``` + # Deployment ## First time setup diff --git a/fly.toml b/fly.toml index 667e4df..c272b03 100644 --- a/fly.toml +++ b/fly.toml @@ -1,55 +1,17 @@ -# fly.toml app configuration file generated for evs-production on 2023-11-19T12:41:31-07:00 +# fly.toml app configuration file generated for evs-production on 2023-11-19T14:55:25-07:00 # # See https://fly.io/docs/reference/configuration/ for information about how to use this file. # app = "evs" primary_region = "sjc" -kill_signal = "SIGINT" -kill_timeout = "5s" -[experimental] - auto_rollback = true +[build] -[deploy] - release_command = "node ./other/sentry-create-release" - -[env] - TZ = "US/Arizona" - -[[mounts]] - source = "data" - destination = "/data" - -[[services]] - protocol = "tcp" +[http_service] internal_port = 3000 + force_https = true + auto_stop_machines = true + auto_start_machines = true + min_machines_running = 0 processes = ["app"] - - [[services.ports]] - port = 80 - handlers = ["http"] - force_https = true - - [[services.ports]] - port = 443 - handlers = ["tls", "http"] - [services.concurrency] - type = "connections" - hard_limit = 100 - soft_limit = 80 - - [[services.tcp_checks]] - interval = "15s" - timeout = "2s" - grace_period = "1s" - restart_limit = 0 - - [[services.http_checks]] - interval = "10s" - timeout = "2s" - grace_period = "5s" - restart_limit = 0 - method = "get" - path = "/resources/healthcheck" - protocol = "http"