Skip to content

Commit

Permalink
Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
VVoruganti committed Sep 13, 2023
1 parent 44a69e0 commit 14920bb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Fly Deploy
on:
push:
branches:
- main
- staging
jobs:
prod-deploy:
if: github.ref == 'refs/heads/main'
name: Deploy Production App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy -c fly.toml --app honcho --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
staging-deploy:
if: github.ref == 'refs/heads/staging'
name: Deploy Staging App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy -c fly.toml --app staging-honcho --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2 changes: 1 addition & 1 deletion chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ async def stream(cls, cache: Conversation, inp: str ):
print("Finished User Prediction")
print("=========================================")
finally:
yield "TERMINATED SEQUENCE"
yield ""



Expand Down
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ api = "python -m uvicorn main:app --host 0.0.0.0 --port 8000"
internal_port = 8000
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
min_machines_running = 1
processes = ["api"]
[http_service.concurrency]
type = "requests"
Expand Down

0 comments on commit 14920bb

Please sign in to comment.