You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2020. It is now read-only.
It is expected that Magento 2 project source code will be located on the host.
21
-
This is necessary to allow IDE index project files quickly. All other infrastructure is deployed on the guest machine.
21
+
It is expected that Magento 2 project source code will be located and managed on the host. This is necessary to allow quick indexing of project files by IDE. All other infrastructure is deployed on the guest machine.
22
22
23
-
Current Vagrant configuration aims to solve performance issues of Magento installed on Virtual Box **for development**.
24
-
Custom solution is implemented for Windows hosts. See [explanation of the proposed solution](docs/performance-issue-on-windows-hosts.md).
23
+
Current Vagrant configuration aims to solve performance issues of Magento installed on Virtual Box **for development**. Custom solution is implemented for Windows hosts. See [explanation of the proposed solution](docs/performance-issue-on-windows-hosts.md).
24
+
25
+
Environment for Magento EE development is configured as well.
26
+
27
+
It is easy to [install multiple Magento instances](#multiple-magento-instances) based on different codebases simultaneously.
25
28
26
29
[Project initialization script](init_project.sh) configures complete development environment:
27
30
@@ -40,21 +43,22 @@ Software listed below should be available in [PATH](https://en.wikipedia.org/wik
-[Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git), on Windows must be [v2.7+](http://git-scm.com/download/win). Make sure you have SSH keys generated and associated with your github account, see [manual](https://help.github.com/articles/generating-ssh-keys/).<br />
46
+
-[Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git). Make sure you have SSH keys generated and associated with your github account, see [how to check](https://help.github.com/articles/testing-your-ssh-connection/) and [how to configure](https://help.github.com/articles/generating-ssh-keys/) if not configured.<br />
44
47
:information_source: It is possible to use another way of getting codebase instead of cloning, it does not matter for successful installation. Just put Magento 2 codebase inside of `vagrant-magento/magento2ce`.<br />
45
-
:information_source: On Windows hosts make sure to set the following options to avoid issues with incorrect line separators:
48
+
:information_source:On Windows hosts Git must be [v2.7+](http://git-scm.com/download/win), also make sure to set the following options to avoid issues with incorrect line separators:
46
49
47
50
```
48
51
git config --global core.autocrlf false
49
52
git config --global core.eol LF
50
53
git config --global diff.renamelimit 5000
51
54
```
52
-
-[PHP](http://php.net/manual/en/install.php) (any version, will be installed automatically on Windows if missing) to allow Magento dependency management with [Composer](https://getcomposer.org/doc/00-intro.md)
55
+
-[PHP](http://php.net/manual/en/install.php) to allow Magento dependency management with [Composer](https://getcomposer.org/doc/00-intro.md)
53
56
-[PHP Storm](https://www.jetbrains.com/phpstorm) is optional but recommended.
57
+
-[NFS server](https://en.wikipedia.org/wiki/Network_File_System) must be installed and running on \*nix and OSX hosts. Is usually available, so just try to follow [installation steps](#how-to-install) first.
54
58
55
59
### Installation steps
56
60
57
-
1. Open terminal and change directory to the one which you want to contain Magento project. On Windows use Git Bash, which is available after Git installation
61
+
1. Open terminal and change directory to the one which you want to contain Magento project. On Windows use Git Bash, which is available after Git installation
58
62
59
63
1. Download project with Vagrant configuration:
60
64
@@ -73,10 +77,10 @@ Software listed below should be available in [PATH](https://en.wikipedia.org/wik
73
77
bash init_project.sh
74
78
```
75
79
76
-
:information_source: On OSX and \*nix hosts NFS will be used by default to sync your project files with guest. On some hosts Vagrant cannot configure NFS properly, in this case it is possible to deploy project without NFS by setting `use_nfs` option in [config.yaml](etc/config.yaml.dist) to `0` <br />
77
-
:information_source: On Windows hosts you might face `Composer Install Error: ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (260)` exception during `composer install`. This can be fixed in 2 ways: decrease path length to the project directory or set `composer_prefer_source` option in [config.yaml](etc/config.yaml.dist) to `1`
80
+
:information_source:On OSX and \*nix hosts NFS will be used by default to sync your project files with guest. On some hosts Vagrant cannot configure NFS properly, in this case it is possible to deploy project without NFS by setting `use_nfs` option in [config.yaml](etc/config.yaml.dist) to `0` <br />
81
+
:information_source:On Windows hosts you might face `Composer Install Error: ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (260)` exception during `composer install`. This can be fixed in 2 ways: decrease path length to the project directory or set `composer_prefer_source` option in [config.yaml](etc/config.yaml.dist) to `1`
78
82
79
-
1. Use `vagrant-magento` directory as project root in PHP Storm (not `vagrant-magento/magento2ce`). This is important, because in this case PHP Storm will be configured automatically by [init_project.sh](init_project.sh). If NFS files sync is disabled in [config](etc/config.yaml.dist) and on Windows hosts [verify deployment configuration in PHP Storm](docs/phpstorm-configuration-windows-hosts.md)
83
+
1. Use `vagrant-magento` directory as project root in PHP Storm (not `vagrant-magento/magento2ce`). This is important, because in this case PHP Storm will be configured automatically by [init_project.sh](init_project.sh). If NFS files sync is disabled in [config](etc/config.yaml.dist) and on Windows hosts [verify deployment configuration in PHP Storm](docs/phpstorm-configuration-windows-hosts.md)
80
84
81
85
### Default credentials and settings
82
86
Some of default settings are available for override. These settings can be found in the file [etc/config.yaml.dist](etc/config.yaml.dist).
@@ -93,12 +97,16 @@ Upon a successful installation, you'll see the location and URL of the newly-ins
93
97
**Codebase and DB access**:
94
98
- Path to your Magento installation on the VM:
95
99
- Can be retrieved from environment variable: `echo ${MAGENTO_ROOT}`
96
-
- On Windows hosts: `/var/www/magento2ce`
97
-
- On Mac,\*nix hosts: the same as on host
100
+
-On Windows hosts: `/var/www/magento2ce`
101
+
-On Mac and\*nix hosts: the same as on host
98
102
- MySQL DB host: `localhost` (not accessible remotely)
99
103
- MySQL DB name: `magento`, `magento_integration_tests`
100
104
- MySQL DB user/password: just use `mysql` with no user and password (`root/password` will be used by default)
101
105
106
+
**Codebase on host**
107
+
- CE codebase: `vagrant_project_root/magento2ce`
108
+
- EE codebase will be available if path to EE repository is specified in `etc/config.yaml`: `vagrant_project_root/magento2ce/magento2ee`
109
+
102
110
### GitHub limitations
103
111
104
112
Be aware that you may encounter GitHub limits on the number of downloads (used by Composer to download Magento dependencies).
@@ -136,3 +144,8 @@ XDebug is already configured to connect to the host machine automatically. So ju
136
144
1. Set XDEBUG_SESSION=1 cookie (e.g. using 'easy Xdebug' extension for Firefox). See [XDebug documentation](http://xdebug.org/docs/remote) for more details
137
145
1. Start listening for PHP Debug connections in PhpStorm on default 9000 port. See how to [integrate XDebug with PhpStorm](https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html#integrationWithProduct)
138
146
1. Set beakpoint or set option in PhpStorm menu 'Run -> Break at first line in PHP scripts'
147
+
148
+
### Multiple Magento instances
149
+
150
+
To install several Magento instances based on different code bases, just follow [Installation steps](#installation-steps) to initialize project in another directory on the host.
151
+
Unique IP address, SSH port and domain name will be generated for each new instance if not specified manually in `etc/config.yaml`
0 commit comments