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
For php version 8.2 or 8.1, select the image in `docker-compose.yml`. For older php version, you need to download an [older version of php-sandbox](https://github.com/8ctopus/php-sandbox/releases/tag/1.2.8) and then choose the correct php version in `docker-compose.yml` as the architecture changed since.
45
+
For php `8.2` or `8.1`, select the image in `docker-compose.yml`. For older php version, you need to download an [older version of php-sandbox](https://github.com/8ctopus/php-sandbox/releases/tag/1.2.8) and then choose the correct php version in `docker-compose.yml` as the architecture changed since.
46
46
47
47
## start coding
48
48
@@ -56,11 +56,11 @@ Start `Docker Desktop` then:
56
56
# start containers in detached mode on linux and mac in shell
57
57
docker-compose up &
58
58
59
-
_Note_: On Windows [hot reload doesn't work with WSL 2](https://github.com/microsoft/WSL/issues/4739), you need to use the legacy Hyper-V.
59
+
_Note_: On Windows [file changes notification to the container doesn't work with the WSL 2 engine](https://github.com/8ctopus/apache-php-fpm-alpine/issues), you need to use the `Hyper-V` engine. Uncheck `Use WSL 2 based engine`. What this means, is that files you update on Windows are not updated inside the container unless you use `Hyper-V`.
60
60
61
61
## access sites
62
62
63
-
There are 2 sites you can access from your browser
63
+
By default, there are 2 sites you can access from your browser
64
64
65
65
http(s)://localhost/
66
66
http(s)://(www.)test.com/
@@ -111,21 +111,21 @@ If `host.docker.internal` does not resolve within the container, update the xdeb
111
111
xdebug.client_host = 192.168.65.2
112
112
```
113
113
114
-
## Code cleanup
114
+
## code cleanup
115
115
116
116
[PHP Coding Standards Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) is a tool to automatically fix PHP coding standards issues.
117
117
118
118
cd sites/localhost/html
119
119
composer fix(-risky)
120
120
121
-
## Check code for issues
121
+
## check code for issues
122
122
123
123
[PHPStan](https://github.com/phpstan/phpstan) is a PHP static analysis tool, it can discover bugs in your code without running it
0 commit comments