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
@@ -64,32 +65,32 @@ Software listed below should be available in [PATH](https://en.wikipedia.org/wik
64
65
### Installation steps
65
66
66
67
:information_source: In case of any issues during installation, please read [troubleshooting section](#troubleshooting)
67
-
68
+
68
69
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
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)
92
-
93
+
93
94
1. Configure remote PHP interpreter in PHP Storm. Go to `Settings => Languages & Frameworks => PHP`, add new remote interpreter and select "Deployment configuration" as a source for connection details.
94
95
95
96
### Default credentials and settings
@@ -133,7 +134,7 @@ Note, that semantic versioning is only used for `x.0` branches (not for `develop
133
134
1. Please make sure that currently installed software, specified in [requirements section](#requirements), meets minimum version requirement
134
135
135
136
## Day-to-day development scenarios
136
-
137
+
137
138
### Reinstall Magento
138
139
To save some time and get clear Magento installation, you can skip installation of software like web server or php.
139
140
The following command will clear Magento DB, Magento caches and reinstall Magento instance.
@@ -144,7 +145,7 @@ Go to 'vagrant-magento' created earlier and run in command line:
144
145
bash m-reinstall
145
146
```
146
147
147
-
### Clear magento cache
148
+
### Clear Magento cache
148
149
149
150
Go to 'vagrant-magento' created earlier and run in command line:
150
151
@@ -165,7 +166,7 @@ bash m-switch-to-ee
165
166
```
166
167
:information_source: On Windows hosts (or when NFS mode is disabled in [config.yaml](etc/config.yaml.dist) explicitly) you will be asked to wait until code is uploaded to guest machine by PhpStorm (PhpStorm must be lunched). To continue the process press any key.
167
168
168
-
### Update composer dependencies
169
+
### Update Composer dependencies
169
170
170
171
Go to 'vagrant-magento' created earlier and run in command line:
171
172
@@ -181,14 +182,14 @@ Go to 'vagrant-magento' created earlier and run in command line:
181
182
182
183
```
183
184
bash m-bin-magento <command_name>
184
-
e.g.
185
+
e.g.
185
186
bash m-bin-magento list
186
187
```
187
188
188
189
### Debugging with XDebug
189
190
190
191
XDebug is already configured to connect to the host machine automatically. So just:
191
-
192
+
192
193
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
193
194
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)
194
195
1. Set beakpoint or set option in PhpStorm menu 'Run -> Break at first line in PHP scripts'
@@ -213,3 +214,21 @@ Answer can be found [here](https://github.com/paliarush/magento2-vagrant-for-dev
213
214
214
215
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.
215
216
Unique IP address, SSH port and domain name will be generated for each new instance if not specified manually in `etc/config.yaml`
217
+
218
+
### Reset environment
219
+
220
+
It is possible to reset project environment to default state, which you usually get just after project initialization. The following command will delete vagrant box, vagrant project settings and PhpStorm project settings. After that it will initialize project from scratch. Magento 2 code base (`magento2ce` directory) will stay untouched.
221
+
222
+
Go to 'vagrant-magento' created earlier and run in command line:
223
+
224
+
```
225
+
bash init-project.sh -f
226
+
```
227
+
228
+
You can reset project settings and Magento 2 code base at the same time. Magento 2 code base will be deleted and then cloned from the repositories specified in [etc/config.yaml](etc/config.yaml.dist)
229
+
230
+
Go to 'vagrant-magento' created earlier and run in command line:
0 commit comments