From c98d1fb9a6e883cacd85086d064934b37849e397 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 8 Jan 2014 22:52:34 +0400 Subject: [PATCH] Adjusted advanced application template docs to reflect DB config movement --- apps/advanced/README.md | 11 +++++------ docs/guide/apps-advanced.md | 7 +++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/apps/advanced/README.md b/apps/advanced/README.md index 735820a..a1f79aa 100644 --- a/apps/advanced/README.md +++ b/apps/advanced/README.md @@ -81,10 +81,9 @@ After you install the application, you have to conduct the following steps to in the installed application. You only need to do these once for all. 1. Run command `init` to initialize the application with a specific environment. -2. Create a new database and adjust the `components.db` configuration in `common/config/params.php` accordingly. -3. Run command `yii migrate` to apply DB migrations. +2. Create a new database and adjust the `components.db` configuration in `common/config/params-local.php` accordingly. +3. Apply migrations with console command `yii migrate`. +4. Set document roots of your Web server: -Now you should be able to access: - -- the frontend using the URL `http://localhost/advanced/frontend/web/` -- the backend using the URL `http://localhost/advanced/backend/web/` +- for frontend `/path/to/yii-application/frontend/web/` and using the URL `http://frontend/` +- for backend `/path/to/yii-application/backend/web/` and using the URL `http://backend/` diff --git a/docs/guide/apps-advanced.md b/docs/guide/apps-advanced.md index d5e8ea2..bf1d323 100644 --- a/docs/guide/apps-advanced.md +++ b/docs/guide/apps-advanced.md @@ -33,10 +33,9 @@ the installed application. You only need to do these once for all. --- php /path/to/yii-application/init --- -2. Create a new database. It is assumed that MySQL InnoDB is used. If not, adjust `console/migrations/m130524_201442_init.php`. -3. In `common/config/params.php` set your database details in `components.db` values. -4. Apply migrations with console command 'yii migrate'. -5. Set document roots of your Web server: +2. Create a new database and adjust the `components.db` configuration in `common/config/params-local.php` accordingly. +3. Apply migrations with console command `yii migrate`. +4. Set document roots of your Web server: - for frontend `/path/to/yii-application/frontend/web/` and using the URL `http://frontend/` - for backend `/path/to/yii-application/backend/web/` and using the URL `http://backend/`