Changing docroots to have the same defaults

Caddy, NGINX and Apache2 should have the same default application paths. The `public/` path suffix is now added in the dotenv file to be able to use Laradock for non-laravel projects as well. Also, updated the documentation.
This commit is contained in:
Winfried
2017-04-23 20:44:18 +02:00
parent 24d70ad1e3
commit 690137a349
11 changed files with 28 additions and 23 deletions

View File

@ -77,14 +77,19 @@ Your folder structure should look like this:
2 - Edit your web server sites configuration.
**In case of NGINX:** open `nginx/sites/default.conf` and change the `root` from `/var/www/public` to `/var/www/{my-project-folder-name}/public`.
We'll need to do step 1 of the [Usage](#Usage) section now to make this happen.
*Or you can keep `default.conf` as it is, and create a separate config `my-site.conf` file for it.*
```
cp env-example .env
```
**In case of Apache:** :P
At the top, change the `APPLICATION` variable to your project path.
<br>
```
APPLICATION=../project-z/public/
```
Make sure to replace `project-z` with your project folder name.
> **Now jump to the [Usage](#Usage) section.**
@ -146,7 +151,7 @@ If you are using **Docker Toolbox** (VM), do one of the following:
<br>
1 - Enter the laradock folder and rename `env-example` to `.env`
1 - Enter the laradock folder and copy `env-example` to `.env`
```shell
cp env-example .env