File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ will prohibit the application from running in production mode.
6767### Docker images
6868
6969When running with your own Docker image, make sure to mount the project folder
70- to wherever it will be hosted by the Docker container .
70+ to wherever the image expects it to be, e.g. ` /app ` or ` /var/www ` .
7171
7272For instance:
7373
@@ -83,6 +83,20 @@ docker run \
8383 php:7.1 \
8484 php --docroot /app/web/ --server "localhost:${PORT}" /app/web/index.php
8585```
86+ Or on Mac:
87+ ```
88+ export PORT=8080 && \
89+ docker run \
90+ --env "PORT=${PORT}" \
91+ --expose "${PORT}" \
92+ -p "${PORT}:${PORT}" \
93+ --rm \
94+ --volume "$PWD:/app" \
95+ -it \
96+ php:7.1 \
97+ php --docroot /app/web/ --server "localhost:${PORT}" /app/web/index.php
98+ ```
99+
86100
87101### Local environment
88102
@@ -91,12 +105,12 @@ falls outside the scope of this project.
91105
92106For development purposes, the internal PHP HTTP server _ is_ explained below.
93107
94- #### Build -in PHP HTTP server
108+ #### Built -in PHP HTTP server
95109
96- For development purposes a Composer ` serve ` command has been provided. This will
110+ For development purposes a Composer ` serve-dev ` command has been provided. This will
97111run the application using PHP internal HTTP server.
98112
99- To use it, run ` composer serve ` in the project root.
113+ To use it, run ` composer serve-dev ` in the project root.
100114
101115** !!! FOR SECURITY REASONS, DO NOT USE THIS METHOD IN PRODUCTION !!!**
102116
You can’t perform that action at this time.
0 commit comments