mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-07 04:16:26 +02:00
Add julia executor and enable elixir in api
This commit is contained in:
parent
b7c8329ea1
commit
6076f88bb9
3 changed files with 6 additions and 0 deletions
|
@ -70,6 +70,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
|
|||
"c",
|
||||
"cpp", "c++",
|
||||
"csharp", "cs", "c#",
|
||||
"elixir", "exs",
|
||||
"go",
|
||||
"java",
|
||||
"julia", "jl",
|
||||
|
|
|
@ -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
2
lxc/executors/elixir
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue