Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
30d3e874
Commit
30d3e874
authored
Aug 19, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #782 from lucianobaraglia/master
Typo in doc [skip ci]
parents
b9553eb5
1503d2e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
apps-advanced.md
docs/guide/apps-advanced.md
+4
-4
apps-basic.md
docs/guide/apps-basic.md
+1
-1
No files found.
docs/guide/apps-advanced.md
View file @
30d3e874
...
...
@@ -85,7 +85,7 @@ Configuration and environments
There are multiple problems with straightforward approach to configuration:
-
Each team member has its own configuration options. Commiting such config will affect other team members.
-
Each team member has its own configuration options. Commit
t
ing such config will affect other team members.
-
Production database password and API keys should not end up in repository.
-
There are multiple servers: development, testing, production. Each should have its own configuration.
-
Defining all configuration options for each case is very repetitive and takes too much time to maintain.
...
...
@@ -94,10 +94,10 @@ In order to solve these issues Yii introduces environments concept that is very
by a set of files under
`environments`
directory.
`init`
command is used to switch between these. What is really does is
just copying everything from environment directory over the root directory where all applications are.
Typically environment contains application bootstrap files such as
`index.php`
and config files
post
fixed with
Typically environment contains application bootstrap files such as
`index.php`
and config files
suf
fixed with
`-local.php`
. These are added to
`.gitignore`
and never added to source code repository.
In order to avoid duplication configurations are overrding each other. For example, frontend reads configuration in the
In order to avoid duplication configurations are overr
a
ding each other. For example, frontend reads configuration in the
following order:
-
`frontend/config/main.php`
...
...
@@ -118,7 +118,7 @@ Another difference is that most application component configurations are moved t
Configuring Composer
--------------------
After application template is installed it's a good idea to adjust defaul
`composer.json`
that can be found in the root
After application template is installed it's a good idea to adjust defaul
t
`composer.json`
that can be found in the root
directory:
```
javascript
...
...
docs/guide/apps-basic.md
View file @
30d3e874
...
...
@@ -108,7 +108,7 @@ point for functional testing.
Configuring Composer
--------------------
After application template is installed it's a good idea to adjust defaul
`composer.json`
that can be found in the root
After application template is installed it's a good idea to adjust defaul
t
`composer.json`
that can be found in the root
directory:
```
javascript
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment