Find database credentials (in Docker configuration files), ex: DATABASE_URL=mysql://root: :3306/mydatabasenameĬ. Log into your Docker container: $ docker exec -it myproject_php bashĬ. (use your Ubuntu credentials here, we were using the ones in PHPStorm Deployment configuration)Ī. Open your SSH Client (ex: Cmder ) and connect to Ubuntu using SSH connection: $ ssh – find the option ‘Upload change files automatically to the default server’ and set to ‘Always’Ī. Set proper directories mapping in: Deployment / Mappings (to find the proper IP address, type the following command in your Ubuntu: ip a)ĭ. Click + (to add a new deployment config) – choose SFTP File / Settings / Build, Execution, Deployment – Deploymentī. –With this setup, we will instantly see the changes to our code in the browser.Ī. – PHPStorm Files’ deployment is configured in a way to automatically send files to Ubuntu. – we have a GIT project cloned on the main Windows hard drive (SSD) We want to enable SSH connection to Ubuntu and we will be using it for local files’ “deployment”. Install Linux on Windows 10 (Ubuntu 20.04 LTS from Microsoft store) Properly configured Docker and Windows WSL2 will give you really good performance in terms of speed.ī.
0 Comments
Leave a Reply. |