Remote Development can be started from the Bunnyshell CLI Tool.
In order to start developing remotely:
1. Run the Bunnyshell CLI:
bunnyshell-cli remote-development start
2. Select the project that contains the environment:
YOUR_PROJECT is a placeholder for the name of your project.
bunnyshell-cli remote-development start
Use the arrow keys to navigate: ↓ ↑ → ←
? Select project:
▸ YOUR_PROJECT
3. Select the environment that contains the Pod for which you want to open a remote development session:
bunnyshell-cli remote-development start
✔ YOUR_PROJECT
Use the arrow keys to navigate: ↓ ↑ → ←
? Select environment:
▸ ENV_1
ENV_2
4. Select the component:
5. Choose the local Sync folder. This is the location where you cloned the repository on your local machine (or where you are running bunnyshell-cli from).
Replace /Users/[USER]/Repos/[demo-repo] with the location of your Sync folder.
6. If all goes well, the SSH connection with the Pod is established and you will have access to a shell inside the container:
Using the shell inside the container you can run the same commands you use on local to build/watch your application.
Note: If you wish to fast-track the wizard, you can specify the project, environment and component as command options.
You can get this precise command from the UI, by clicking the Actions menu for an Environment Component and selecting Remote Development.
bunnyshell-cli remote-development start
✔ YOUR_PROJECT
✔ ENV_1
✔ backend
Sync folder: /Users/[USER]/Repos/[demo-repo]
\ Waiting for pod to be ready for remote development
root@backend-1234a5bc6-d7ef8:/usr/src/app/backend#