Skip to content

Commit

Permalink
deploy hosted version to fly
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Jun 25, 2024
1 parent 0b1cec3 commit 26bef23
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy_cloud.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
on:
release:
types:
- published
jobs:
deploy:
runs-on: ubuntu-latest
concurrency: deploy-group
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
5 changes: 5 additions & 0 deletions core/debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e

fly ssh console --pty --select -C "/app/bin/canary remote"
33 changes: 33 additions & 0 deletions core/fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# fly.toml app configuration file generated for fastrepl on 2024-06-25T17:02:24+09:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'canary-prod'
primary_region = 'sjc'
kill_signal = 'SIGTERM'

[build]
dockerfile = 'Dockerfile'

[env]
PHX_HOST = 'cloud.getcanary.dev'
PORT = '8080'

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1
processes = ['app']

[http_service.concurrency]
type = 'connections'
hard_limit = 1000
soft_limit = 1000

[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1

0 comments on commit 26bef23

Please sign in to comment.