Skip to main content

Allowing Console Input

You can enable console input to the client by changing their startup command to one of the below commands.

caution

Please note that this is not recommended, and enabling the Startup Command Modification option is most likely a better solution.

Node.js

bash --rcfile <(echo 'export RUN_CMD="node /home/container/'{{NODE_JS_FILE}}' &"; eval $(echo $RUN_CMD)')

Python

bash --rcfile <(echo 'export RUN_CMD="python3 /home/container/'{{STARTUP_FILE}}' &"; eval $(echo $RUN_CMD)')

Typescript (Switching to Typescript)

bash --rcfile <(echo 'export RUN_CMD="npx ts-node /home/container/'{{NODE_JS_FILE}}' &"; eval $(echo $RUN_CMD)')