Skip to content

Commit

Permalink
Merge pull request #42 from kalviumcommunity/feat/fly-deployment
Browse files Browse the repository at this point in the history
Fly.io deployment
  • Loading branch information
anipnwr7777 authored Mar 5, 2024
2 parents 509bbc1 + d9fb0b2 commit 27727a3
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
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 }}
21 changes: 21 additions & 0 deletions bruno.docs/Code/Execute Code.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: Execute Code
type: http
seq: 1
}

post {
url: {{url}}/execute
body: json
}

headers {
Content-Type: application/json
}

body:json {
{
"language": "nodejs",
"script" : "console.log('hello world')"
}
}
22 changes: 22 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# fly.toml app configuration file generated for compilerd on 2024-02-27T08:38:17+05:30
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'compilerd'
primary_region = 'sin'

[build]

[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ['app']

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

0 comments on commit 27727a3

Please sign in to comment.