- Open the project in terminal
Project Properties -> Open in Terminal
Configure your SSH connection
- Go back to Project Properties -> Frameworks -> Laravel
-> Select Remote terminal from the list
- Configure your docker settings
-> check the Use docker
-> write your php docker image ex: "php-docker-php-1"
-> add remote bash type ex: "sh"
-> include pre commands.
Ex: sometimes the php app is not in the root folder of the docker image. So you will need
to add a cd /var/www/my-app &&
script before.
-
Go to run commands
-> right click on Project Properties -> Laravel -> Run command
-
Click on Refresh commands
Now if you select a command it should execute by clicking on the Run button
The output terminal color can be edited on Netbeans -> Options -> Miscellaneous -> Terminal tab