diff --git a/01-front-controller.md b/01-front-controller.md index 87a12ad..53d17ef 100644 --- a/01-front-controller.md +++ b/01-front-controller.md @@ -38,7 +38,7 @@ Now navigate inside your `src` folder and create a new `Bootstrap.php` file with echo 'Hello World!'; ``` -Now let's see if everything is set up correctly. Open up a console and navigate into your projects `public` folder. In there type `php -S 0.0.0.0:1234` and press enter. This will start the built-in webserver and you can access your page in a browser with `http://localhost:1234`. You should now see the 'hello world' message. +Now let's see if everything is set up correctly. Open up a console and navigate into your projects `public` folder. In there type `php -S 0.0.0.0:1235` and press enter. This will start the built-in webserver and you can access your page in a browser with `http://localhost:1235`. You should now see the 'hello world' message. If there is an error, go back and try to fix it. If you only see a blank page, check the console window where the server is running for errors. diff --git a/04-development-helpers.md b/04-development-helpers.md index 74f913c..2dd943e 100644 --- a/04-development-helpers.md +++ b/04-development-helpers.md @@ -238,7 +238,7 @@ with lots of parameters by hand all the time, so i added a few lines to my compo ```json "scripts": { - "serve": "php -S 0.0.0.0:1234 -t public", + "serve": "php -S 0.0.0.0:1235 -t public", "phpstan": "./vendor/bin/phpstan analyze", "baseline": "./vendor/bin/phpstan analyze --generate-baseline", "check": "./vendor/bin/phpcs", diff --git a/07-dispatching-to-a-class.md b/07-dispatching-to-a-class.md index 0c961a4..c3555ef 100644 --- a/07-dispatching-to-a-class.md +++ b/07-dispatching-to-a-class.md @@ -72,7 +72,7 @@ case \FastRoute\Dispatcher::FOUND: So instead of just calling a method you are now instantiating an object and then calling the method on it. -Now if you visit `http://localhost:1234/` everything should work. If not, go back and debug. +Now if you visit `http://localhost:1235/` everything should work. If not, go back and debug. And of course don't forget to commit your changes. diff --git a/10-invoker.md b/10-invoker.md index 3033fae..0ed6b59 100644 --- a/10-invoker.md +++ b/10-invoker.md @@ -65,7 +65,7 @@ $args['request'] = $request; $response = $container->call($handler, $args); ``` -Try to open [localhost:1234/](http://localhost:1234/) in your browser and check if you are getting redirected to '/hello'. +Try to open [localhost:1235/](http://localhost:1235/) in your browser and check if you are getting redirected to '/hello'. But by now you should know that I do not like to depend on specific implementations and the call method is not defined in the psr/container interface. Therefore we would not be able to use that if we are ever switching to the symfony container diff --git a/15-adding-content.md b/15-adding-content.md index 64562fa..0e85af0 100644 --- a/15-adding-content.md +++ b/15-adding-content.md @@ -241,7 +241,7 @@ class Page } ``` -You can now navigate your Browser to [localhost:1234/page][http://localhost:1234/page] and try out if everything works. +You can now navigate your Browser to [localhost:1235/page][http://localhost:1235/page] and try out if everything works. Of course this code is far from looking good. We heavily rely on the pages being files in the filesystem, and the action should never be aware of the filesystem in the first place, also we have a lot of string replacements and other repetetive diff --git a/README.md b/README.md index a636596..a072b20 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ vagrant ssh cd app ``` -I have exposed the port 1234 to be used in the VM, if you would like to use another one you are free to modify the +I have exposed the port 1235 to be used in the VM, if you would like to use another one you are free to modify the Vagrantfile. diff --git a/Vagrantfile b/Vagrantfile index 7cdc936..1509687 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -7,7 +7,7 @@ Vagrant.configure("2") do |config| v.memory = 2048 v.cpus = 4 end - config.vm.network "forwarded_port", guest: 1234, host: 1234 + config.vm.network "forwarded_port", guest: 1235, host: 1235 config.vm.network "forwarded_port", guest: 22, host: 2200, id: 'ssh' config.vm.synced_folder "./app", "/home/vagrant/app/" config.ssh.username = 'vagrant'