From dd26912eee1d4d645d19de16f8168496a99812d7 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sat, 25 May 2024 01:17:00 +0200 Subject: [PATCH] it's deployed --- backend/fly.toml | 20 ++++++++++++++++++++ backend/live.hurl | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 backend/fly.toml create mode 100644 backend/live.hurl diff --git a/backend/fly.toml b/backend/fly.toml new file mode 100644 index 0000000..b6f6655 --- /dev/null +++ b/backend/fly.toml @@ -0,0 +1,20 @@ +# fly.toml app configuration file generated for hare-exec on 2024-05-25T00:23:54+02:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = 'hare-exec' +primary_region = 'ams' + +[build] + +[http_service] + internal_port = 8080 + force_https = true + auto_stop_machines = true + auto_start_machines = true + min_machines_running = 0 + processes = ['app'] + +[[vm]] + size = 'shared-cpu-1x' diff --git a/backend/live.hurl b/backend/live.hurl new file mode 100644 index 0000000..daacb7a --- /dev/null +++ b/backend/live.hurl @@ -0,0 +1,11 @@ +POST https://hare-exec.fly.dev/v1/exec +content-type: application/json +``` +{ + "sandbox": "hare", + "command": "run", + "files": { + "": "use fmt;\nexport fn main() void = {\nfmt::println(\"hello world\")!;\n};\n" + } +} +```