Add julia executor and enable elixir in api

This commit is contained in:
isakal 2020-06-04 22:24:04 +02:00
parent b7c8329ea1
commit 6076f88bb9
3 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
"c",
"cpp", "c++",
"csharp", "cs", "c#",
"elixir", "exs",
"go",
"java",
"julia", "jl",

View File

@ -57,6 +57,9 @@ case "$lang" in
"csharp" | "cs" | "c#")
bin=csharp
;;
"elixir" | "exs")
bin=elixir
;;
"go")
bin=go
;;

2
lxc/executors/elixir Normal file
View File

@ -0,0 +1,2 @@
cd /tmp/$2
runuser runner$1 -c "cd /tmp/$2 ; cat args.args ; xargs -d '\n' timeout -s KILL 3 elixir code.code"