From 22172b835f7a9196b4ef25006c28b2514cbff1cf Mon Sep 17 00:00:00 2001 From: ANIRUDH PANWAR Date: Tue, 27 Feb 2024 08:52:38 +0530 Subject: [PATCH 1/2] add fly deployment from github actions --- .github/workflows/fly.yml | 16 ++++++++++++++++ fly.toml | 22 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/fly.yml create mode 100644 fly.toml diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml new file mode 100644 index 00000000..debb4731 --- /dev/null +++ b/.github/workflows/fly.yml @@ -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 }} diff --git a/fly.toml b/fly.toml new file mode 100644 index 00000000..9e09c7b7 --- /dev/null +++ b/fly.toml @@ -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 From d9fb0b26a3bf609a580907430e9392e0c0c6369a Mon Sep 17 00:00:00 2001 From: ANIRUDH PANWAR Date: Tue, 5 Mar 2024 12:45:22 +0530 Subject: [PATCH 2/2] add bruno for execute code --- bruno.docs/Code/Execute Code.bru | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bruno.docs/Code/Execute Code.bru diff --git a/bruno.docs/Code/Execute Code.bru b/bruno.docs/Code/Execute Code.bru new file mode 100644 index 00000000..57c86f1f --- /dev/null +++ b/bruno.docs/Code/Execute Code.bru @@ -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')" + } +}