diff --git a/Rocket.toml b/Rocket.toml new file mode 100644 index 00000000..dddba946 --- /dev/null +++ b/Rocket.toml @@ -0,0 +1,8 @@ +[global] +address = "localhost" +log = "normal" +port = 8000 + +[global.limits] +forms = 131072 +json = 20971520 diff --git a/start b/start deleted file mode 100755 index d2625b96..00000000 --- a/start +++ /dev/null @@ -1,25 +0,0 @@ -#! /bin/bash - -set -euo pipefail - -cargo build - -killall -9 hecate || true - -function startsrv() { - cargo run& - - sleep 2 - - # On OSX when cargo first runs it will be connected to `localhost:8000` - # but not to 127.0.0.1. curl localhost:8000 will work but curl 127.0.0.1 will fail. - # Node request converts localhost:8000 to 127.0.0.1 behind the scenes, resulting in failure - # running a second startsrc fixes this. - if ! curl '127.0.0.1:8000'; then - startsrv - else - wait - fi -} - -startsrv