Changing port to 1235 to not clash with smtp default port
This commit is contained in:
parent
00c31259f8
commit
d81535c3c0
7 changed files with 7 additions and 7 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
||||
|
|
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue