Using D Laravel ssh mode - DevinY/dlaravel GitHub Wiki
You can go following steps to setup up D-Laravel in ssh mode: first of all crate an OpenSSH key pair on Your Mac or Linux.
-
go to ~/.ssh folder, and issue command ssh-keygen and name the key as dlaravel_rsa.
-
add dlaravel openssh config edit ~/.ssh/config
Host dlaravel ForwardAgent yes StrictHostKeyChecking no RemoteCommand cd /var/www/html; bash --login RequestTTY yes Hostname 127.0.0.1 User dlaravel port 2020 IdentityFile=~/.ssh/dlaravel_rsa
as you can see above settings, D-Laravel ssh mode using port 2020 as default port. and also we disable strict host key checking because we are using docker-compose, The fpm container recreate every time when docker-compose up and down.
-
go to D-laravel folder, and issue command as below: ./console ssh
-
after containers start up, you can ssh to your fpm container with command as below:
ssh dlaravel