Skip to content

Commit

Permalink
Merge 4b4d93d into 53b5e2f
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Yao committed Apr 8, 2016
2 parents 53b5e2f + 4b4d93d commit 8dacd21
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ This will create a new VM instance with Ubuntu Trusty (14.04 LTS), install all d
* Run ```vagrant ssh```

This will ssh you into the VM that you just created, so that you can run Symfony's PHP Web Server
If you are running vagrant for the first time, remember to set the directory path for php_browscap.ini in ```php.ini```.
* Find your ```php.ini``` file and open it with your favourite editor
* Append the following:
```[browscap]```
```browscap = "/vagrant/php_browscap.ini"```

#### 3. Run the Symfony Web Server

Expand All @@ -26,17 +31,16 @@ This will ssh you into the VM that you just created, so that you can run Symfony
* Run ```php bin/console doctrine:schema:create``` to create the schema
* Run ```php bin/console server:run``` to run the Symfony Web Server


#### 4. Connect to the website from your Host computer

* Open your browser of choice
* Open ```localhost:8889/```
* Open ```localhost:8080/```
* Enjoy


Note: The Symfony Web server runs locally on port 8000. However, we have an nginx server running as a reverse proxy on port 8080, that forward the requests to the Symfony Web Server. On top of that, Vagrant is set up to forward port 8080 of the Guest VM to port 8889 of the Host machine, so for all intents and purposes, that's what you should use

Note #2: You should also be able to use ```localhost:8889/app_dev.php/``` that uses a dev environment. This will (mostly) not use cache, and it will give you a good error output that helps with development
Note #2: You should also be able to use ```localhost:8080/app_dev.php/``` that uses a dev environment. This will (mostly) not use cache, and it will give you a good error output that helps with development

##### 5. Make Changes and Commit

Expand Down

0 comments on commit 8dacd21

Please sign in to comment.