Skip to content

Commit f45e389

Browse files
authored
Merge pull request #11 from ModestCoders/doc-updates
Doc updates
2 parents 030d154 + f0e9910 commit f45e389

File tree

5 files changed

+29
-59
lines changed

5 files changed

+29
-59
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ and this project adheres to [Semantic Version](http://semver.org/spec/v2.0.0.htm
1111

1212
### Removed
1313

14+
## [1.3] - 05-09-2018
15+
16+
### Changed
17+
18+
* Documentation about how to sync `vendor` and `generated` volumes according to latest changes on [magento2-dockergento-console](https://github.com/ModestCoders/magento2-dockergento-console)
19+
20+
### Removed
21+
22+
* Remove first 2 steps to configure xdebug in PHPStorm are not longer needed because it is enough by just setting the debug port and server configuration
23+
* Remove bind mount of `generated` folder in `unison container. Unison container is now only meant to be used for `watch` command inside vendor modules.
1424

1525
## [1.2.0] - 30-08-2018
1626
### Added

README.md

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Performance Comparison
66

7+
#### 10x faster than any other docker setup on MacOS
8+
79
<a href="https://youtu.be/sGmXc_lzTNM" target="_blank">
810
<img src="docs/img/comparison_speed_video.png" alt="Dockergento speed comparison" width="240" height="180" border="10" />
911
</a>
@@ -45,35 +47,9 @@ As a work-around for this behavior, you can put vendor or third-party library di
4547
* pub/static
4648
* pub/media
4749

48-
* Synchronise `vendor` and `generated` volumes using a specific `unison` container.
49-
50-
<details>
51-
<summary>How to sync volumes between host and container</summary>
52-
53-
See [dockergento workflow](#workflow) for a better understanding about whole development process with dockergento.
54-
55-
There are 2 options to sync the volumes `vendor` and `generated`
56-
57-
**Option 1: One time sync**
58-
59-
This option must be used most of the times. You should only need to sync `vendor` and `generated` from time to time for debugging purposes
60-
61-
```
62-
docker-compose run --rm unison sync -path vendor -path generated
63-
```
64-
65-
NOTE: For faster and more specific syncs, you can specify a subfolder like `sync -path vendor/<company_name>`.
66-
67-
**Option 2: Watch**
68-
69-
This option is only recommended if you are implementing code in a vendor module.
70-
71-
```
72-
docker-compose run --rm unison watch -path vendor/<company_name>/<module_name>`
73-
```
74-
75-
</details>
76-
50+
* Custom synchronisation of `vendor` and `generated`:
51+
* These volumes are synchronised seamless thanks to [magento2-dockergento-console](https://github.com/ModestCoders/magento2-dockergento-console)
52+
* See [dockergento workflow](#workflow) for a better understanding about whole development process with dockergento.
7753

7854
## Preconditions
7955

@@ -215,9 +191,9 @@ See detailed documentation about development workflow with dockergento
215191

216192
## Troubleshooting
217193

218-
### Named volumes suddenly binded to host
194+
### Named volumes suddenly bind to host
219195

220-
There is bug in docker that causes volumes to stop working and start behabing like a binded mount. If you notice a performance decrease, try the following:
196+
There is bug in docker that causes volumes to stop working and start behaving like a bind mount. If you notice a performance decrease, try the following:
221197

222198
* `dockergento volumes-check`
223199

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ services:
4747
image: modestcoders/unison:2.51.2
4848
volumes:
4949
- app-vendor:/var/www/html/vendor
50-
- app-generated:/var/www/html/generated
5150
- ./vendor:/sync/vendor
52-
- ./generated:/sync/generated
5351
environment:
5452
- SYNC_SOURCE_BASE_PATH=/sync
5553
- SYNC_DESTINATION_BASE_PATH=/var/www/html

docs/samples/composer_json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
}
8686
}
8787
}
88-
``
88+
```

docs/xdebug_phpstorm.md

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,37 @@
11
# PHPStorm + Xdebug Setup
22

3-
## Enable xdebug
3+
## Enable Xdebug
44

5-
`xdebug` needs to be enabled inside the `phpfpm` container. You can do that as explained in `magento2-dockergento-console`
5+
Xdebug needs to be enabled inside the `phpfpm` container.
66

7-
* workflow -> [enable xdebug](https://github.com/ModestCoders/magento2-dockergento-console/tree/master/docs/workflow#xdebug)
7+
* You can do that as explained in `magento2-dockergento-console` -> [enable xdebug](https://github.com/ModestCoders/magento2-dockergento-console/tree/master/docs/workflow#xdebug)
88

9-
## PHPStorm configuration
10-
11-
1. `Build, Execution, Deployment > Docker`
12-
13-
* Add new docker profile (i.e dockergento)
14-
15-
2. `PHPStorm > Preferences > Languages & Frameworks > PHP`
16-
17-
* Add new CLI interpreter
9+
```
10+
dockergento debug-enable
11+
```
1812

19-
![cli_new_interpreter](img/cli_new_interpreter.png)
20-
21-
* Select CLI Interpreter from Docker
22-
23-
![interpreter_from_docker](img/interpreter_from_docker.png)
24-
25-
* Select `phpfpm` docker image
26-
27-
![interpreter_phpfpm_image](img/interpreter_phpfpm_image.png)
13+
## PHPStorm configuration
2814

29-
3. `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug`
15+
1. `PHPStorm > Preferences > Languages & Frameworks > PHP > Debug`
3016
* Debug Port: 9001
3117

3218
![debug_port](img/debug_port.png)
3319

34-
4. `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers`
20+
2. `PHPStorm > Preferences > Languages & Frameworks > PHP > Servers`
3521

3622
* Name: `localhost` (Same as `PHP_IDE_CONFIG` in `docker-compose.yml`)
3723
* Port: 8000
3824
* Mapping: `/Users/<username>/Sites/<project> -> /var/www/html`
3925

4026
![debug_server_mapping](img/debug_server_mapping.png)
4127

42-
5. Start Listening for PHP Debug connections
28+
3. Start Listening for PHP Debug connections
4329

4430
**NOTE**: Be sure to activate that only after setting the right debug port. Changes in Debug port are ignored once the listener has started.
4531

4632
![PHPStorm Debug Listener](img/phpstorm_debug_listener.png)
4733

48-
6. Install and enable `Xdebug helper` plugin in Chrome
34+
4. Install and enable `Xdebug helper` plugin in Chrome
4935

5036
* [https://chrome.google.com/webstore/detail/xdebug-helper](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc)
5137

0 commit comments

Comments
 (0)