Skip to content

Commit f751c95

Browse files
Run on non-privileged port by default
1 parent b778a86 commit f751c95

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,14 @@ To use it, run `composer serve-dev` in the project root.
114114

115115
**!!! FOR SECURITY REASONS, DO NOT USE THIS METHOD IN PRODUCTION !!!**
116116

117-
By default, the application is hosted on `localhost` port `80`.
117+
By default, the application is hosted on `localhost` port `8080`.
118+
So if you visit http://localhost:8080/ with your browser, you should see "Hello, World!".
118119

119120
Both the `HOST` and `PORT` can be configured before running the command by
120121
setting them in the environment, for instance:
121122

122123
```sh
123-
HOST='solid.local' PORT=8080 composer serve
124+
HOST='solid.local' PORT=1234 composer serve-dev
124125
```
125126

126127
This command can also be run through a docker container, for instance:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"scripts": {
3939
"lint":"",
40-
"serve-dev":"ENVIRONMENT=development php -S \"${HOST:-localhost}:${PORT:-80}\" -t web/ web/index.php",
40+
"serve-dev":"ENVIRONMENT=development php -S \"${HOST:-localhost}:${PORT:-8080}\" -t web/ web/index.php",
4141
"serve-dev-docker":"bash ./bin/serve-docker-dev.sh",
4242
"test":"phpunit"
4343
},

0 commit comments

Comments
 (0)