diff --git a/data/docs/02.Installation.md b/data/docs/02.Installation.md index af8749f..0f2bc96 100644 --- a/data/docs/02.Installation.md +++ b/data/docs/02.Installation.md @@ -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. diff --git a/data/logs/www.access.log b/data/logs/www.access.log index 1438f67..d042489 100644 --- a/data/logs/www.access.log +++ b/data/logs/www.access.log @@ -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"