Skip to content

Commit

Permalink
Merge pull request #1008 from appwrite/fix-run-locally-commands
Browse files Browse the repository at this point in the history
Fix: container start commands
  • Loading branch information
Meldiron authored Nov 5, 2024
2 parents a810403 + 173f2ed commit 1a2731f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions templates/cli/lib/emulation/utils.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,67 +25,67 @@ const runtimeNames = {
const systemTools = {
'node': {
isCompiled: false,
startCommand: "node src/server.js",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ "package.json", "package-lock.json" ]
},
'php': {
isCompiled: false,
startCommand: "php src/server.php",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ "composer.json", "composer.lock" ]
},
'ruby': {
isCompiled: false,
startCommand: "bundle exec puma -b tcp://0.0.0.0:3000 -e production",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ "Gemfile", "Gemfile.lock" ]
},
'python': {
isCompiled: false,
startCommand: "python3 src/server.py",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ "requirements.txt", "requirements.lock" ]
},
'python-ml': {
isCompiled: false,
startCommand: "python3 src/server.py",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ "requirements.txt", "requirements.lock" ]
},
'deno': {
isCompiled: false,
startCommand: "deno run --allow-run --allow-net --allow-write --allow-read --allow-env src/server.ts",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ ]
},
'dart': {
isCompiled: true,
startCommand: "src/function/server",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ ]
},
'dotnet': {
isCompiled: true,
startCommand: "dotnet src/function/DotNetRuntime.dll",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ ]
},
'java': {
isCompiled: true,
startCommand: "java -jar src/function/java-runtime-1.0.0.jar",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ ]
},
'swift': {
isCompiled: true,
startCommand: "src/function/Runtime serve --env production --hostname 0.0.0.0 --port 3000",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ ]
},
'kotlin': {
isCompiled: true,
startCommand: "java -jar src/function/kotlin-runtime-1.0.0.jar",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ ]
},
'bun': {
isCompiled: false,
startCommand: "bun src/server.ts",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ "package.json", "package-lock.json", "bun.lockb" ]
},
'go': {
isCompiled: true,
startCommand: "src/function/server",
startCommand: "sh helpers/server.sh",
dependencyFiles: [ ]
},
};
Expand Down

0 comments on commit 1a2731f

Please sign in to comment.