![]() ![]() Once you have that finished, open PhpStorm and make a New Project from Existing Files using the repository root as your project. Configure a SFTP connectionĬonfiguring a SFTP connection to your vagrant virtual machine allows PhpStorm to do thing like access the remote PHP When prompted to select your scenario, select Source files are in a local directory, no Web server is yet configured. Interpreter and deploy file changes automatically. ![]() This step should be done first as this connection will be used in many of the later steps. Press the + and add a server of type SFTP. Web server URL: Under the Mappings tab, set the following.Private Key File: /.vagrant/machines/ubuntu-20.04/virtualbox/private_key.Authentication Type: Key pair (OpenSSH or PuTTY).SSH Connection: create a new connection using.Set the following parameters under the Connection tab: Give the server a name, like Submitty Vagrant. This step will configure PhpStorm to use the PHP CLI that is configured inside your vagrant machine. It is important to use this PHP installation as opposed to some other one as it ensures environment consistency among developers and production servers. Under PhpStorm settings, open Languages & Frameworks > PHP. button next to CLI Interpreter and, on the left list of the interpreters window, press the + and select From Docker, Vagrant, VM, Remote. Select Vagrant from the list of radio buttons. Deploying updates automatically to vagrant Then press OK to add the interpreter and OK to save the list of interpreters. Set Upload changed files automatically to the default server to Always. Under PhpStorm settings, open Languages & Frameworks > PHP > Debug. ![]() In the pre-configuration steps, press Validate to open the configuration validator. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |