Interact with your Vercel deployment's build container through it's bash terminal
HTTP ·
WebSocket ·
This project enables remote interaction with a Vercel Build container through it's bash terminal using child processes. I initially wrote this to explore the remote environment and use the /temp
directory of a Vercel Build Docker container. {see more @ Vercel Builds }
For a Next.js implementation, check guava-next
dir: plain-http
+ root index.js
Everything is stateless on the HTTP
implementation. The child process
is killed after every command or should I say for every new command, a new child process
is spun up.
dir: websocket
All commands are piped to the same child process
.
To set up and run the application, follow these steps:
pnpm install
- Set
HOST_NAME
in.env
- Then
node index.js
to spin up the server. - Finally
node plain-http/hclient.js
to start the client.
- Run
node websocket/index.js
to spin up the server. - Point to your server address in
websocket/client.js
- Then
node websocket/client.js
to use the websocket client.
-
Run the server:
node hclient.js
The server will start listening on port 8080.
-
Run the client:
node client.js
This will prompt you to enter a command.
-
Enter the desired command and press Enter.
The command will be sent to the server, executed in a bash terminal, and the output will be displayed in the client console.