Spaces:
Running
Running
Update tests.py
Browse files
tests.py
CHANGED
@@ -248,7 +248,7 @@ def run_code_files(start_cmd:str,forever_cmd:str) -> dict:
|
|
248 |
Any server/website started should use port 1337.
|
249 |
Args:
|
250 |
start_cmd (str): The shell command to execute the code.
|
251 |
-
(e.g., ``python /app/code_interpreter/app.py``).
|
252 |
Files must be in ``/app/code_interpreter``.
|
253 |
forever_cmd (str): Execution mode.
|
254 |
- ``'true'``: Runs indefinitely (for servers/websites).
|
@@ -290,6 +290,8 @@ def run_shell_command(cmd:str,forever_cmd:str) -> dict:
|
|
290 |
- `sudo` is not available and not required.
|
291 |
- Standard bash features like `&&`, `||`, pipes (`|`), etc., are supported.
|
292 |
- When installing python packages , add an argument --break-system-packages to the pip install command.
|
|
|
|
|
293 |
Args:
|
294 |
cmd (str): The shell command to execute.
|
295 |
Example: ``mkdir test_dir && ls -l``
|
|
|
248 |
Any server/website started should use port 1337.
|
249 |
Args:
|
250 |
start_cmd (str): The shell command to execute the code.
|
251 |
+
(e.g., ``python /app/code_interpreter/app.py`` or ``node /app/code_interpreter/server.js``).
|
252 |
Files must be in ``/app/code_interpreter``.
|
253 |
forever_cmd (str): Execution mode.
|
254 |
- ``'true'``: Runs indefinitely (for servers/websites).
|
|
|
290 |
- `sudo` is not available and not required.
|
291 |
- Standard bash features like `&&`, `||`, pipes (`|`), etc., are supported.
|
292 |
- When installing python packages , add an argument --break-system-packages to the pip install command.
|
293 |
+
- The following npm packages are preinstalled: express ejs chart.js .Any additional packages can be installed with npm install command.
|
294 |
+
|
295 |
Args:
|
296 |
cmd (str): The shell command to execute.
|
297 |
Example: ``mkdir test_dir && ls -l``
|