Skip to content

Commit

Permalink
Added missing hosts file instructions in docs #9
Browse files Browse the repository at this point in the history
  • Loading branch information
edigu committed Jul 18, 2015
1 parent af825e2 commit c9bb0e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
19 changes: 12 additions & 7 deletions data/docs/02.Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,29 @@ As you noticed, these directories also ignored via [.gitignore](/.gitignore), th
- Create a local copy of doctrine.local.php.dist file using the commands below:

```
cd /path/to/boilerplate
cp config/autoload/doctrine.local.{php.dist,php}
$ cd /path/to/projects/boilerplate
$ cp config/autoload/doctrine.local.{php.dist,php}
```

- And replace the `@dbuser`, `@dbpass` and `@dbname` values with yours.
- And replace the `@dbuser`, `@dbpass` and `@dbname` values in `doctrine.local.php` file with yours.

## System
Defining an `APPLICATION_ENV` environment variable on the host machine which runs the application is good practice. This also required to run application without any problem via CLI.

Open the terminal and issue the command below:
Open the terminal and issue the commands below:

```
echo "export APPLICATION_ENV=development" >> ~/.bashrc
source ~/.bashrc
```sh
$ echo "export APPLICATION_ENV=development" >> ~/.bashrc
$ source ~/.bashrc
```

**IMPORTANT** - On production server, you should use `production` value instead of `development`. If you wish to run the application on multiple servers for testing purposes, you can use values like `testing`, `staging` etc..

Also you need to append the line below to your `/etc/hosts` file:

```
127.0.0.1 www.boilerplate.local admin.boilerplate.local api.boilerplate.local
```

## HTTP Server
ZF2 Boilerplate contributors uses [Nginx](http://nginx.org/en/) as HTTP server. This documentation explains required configuration for nginx however achieving same result with the [Apache Http](https://httpd.apache.org/) server is possible too.
Expand Down
5 changes: 5 additions & 0 deletions data/logs/www.access.log
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
127.0.0.1 - - [18/Jul/2015:12:04:44 +0300] "GET /favicon.ico HTTP/1.1" 200 357 "http://www.boilerplate.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"
127.0.0.1 - - [18/Jul/2015:13:55:19 +0300] "GET / HTTP/1.1" 200 345 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"
127.0.0.1 - - [18/Jul/2015:14:02:33 +0300] "GET / HTTP/1.1" 200 37965 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"
127.0.0.1 - - [18/Jul/2015:14:13:31 +0300] "GET / HTTP/1.1" 200 37966 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"
127.0.0.1 - - [18/Jul/2015:14:13:32 +0300] "GET /css/all.css HTTP/1.1" 304 0 "http://www.boilerplate.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"
127.0.0.1 - - [18/Jul/2015:14:13:32 +0300] "GET /css/admin.css HTTP/1.1" 304 0 "http://www.boilerplate.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"
127.0.0.1 - - [18/Jul/2015:14:13:32 +0300] "GET /js/modernizr-respond.js HTTP/1.1" 304 0 "http://www.boilerplate.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"
127.0.0.1 - - [18/Jul/2015:14:13:32 +0300] "GET /js/all.js HTTP/1.1" 304 0 "http://www.boilerplate.local/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"

0 comments on commit c9bb0e6

Please sign in to comment.