diff --git a/.env-example b/.env.example similarity index 100% rename from .env-example rename to .env.example diff --git a/README.md b/README.md index e239cfe..ddfb133 100755 --- a/README.md +++ b/README.md @@ -85,10 +85,10 @@ Instead you can accept different parameters from server environment with `env()` Server environment variables can be set through web server vhost configuration, .htaccess file, or .env file in project root (the simplest option). -To start using the project template copy .env-example as .env in the project root and setup it. +To start using the project template copy .env.example as .env in the project root and setup it. ### Web -Copy `/public/.htaccess-example` as `/public/.htaccess` to enable pretty URLs support and cache/expire +Copy `/public/.htaccess.example` as `/public/.htaccess` to enable pretty URLs support and cache/expire tokens required by Google PageSpeed Insights test. Furthermore you should check such options inside .env: diff --git a/composer.json b/composer.json index 7131a56..0742725 100755 --- a/composer.json +++ b/composer.json @@ -15,7 +15,8 @@ "vlucas/phpdotenv": "~2.2", "dmstr/yii2-adminlte-asset": "~2.6", "justcoded/yii2-settings": "*", - "justcoded/yii2-rbac": "*" + "justcoded/yii2-rbac": "*", + "justcoded/dotenv-sync": "*" }, "require-dev": { "yiisoft/yii2-debug": "~2.0.0", diff --git a/public/.htaccess b/public/.htaccess.example similarity index 100% rename from public/.htaccess rename to public/.htaccess.example