Browse Source

minor fixes

slavavitrenko 7 years ago
parent
commit
20393d3233
4 changed files with 7 additions and 791 deletions
  1. 4 0
      .env-dist
  2. 3 28
      .gitignore
  3. 0 747
      app/logs/app.log
  4. 0 16
      web/index-test.php

+ 4 - 0
.env-dist

@@ -0,0 +1,4 @@
+DB_HOST='localhost'
+DB_NAME=''
+DB_USER=''
+DB_PASS=''

+ 3 - 28
.gitignore

@@ -1,30 +1,5 @@
-# phpstorm project files
+.env
 .idea
-
-# netbeans project files
-nbproject
-
-# zend studio for eclipse project files
-.buildpath
-.project
-.settings
-
-# windows thumbnail cache
-Thumbs.db
-
-# composer vendor dir
 /vendor
-
-# composer itself is not needed
-composer.phar
-
-# Mac DS_Store Files
-.DS_Store
-
-# phpunit itself is not needed
-phpunit.phar
-# local phpunit config
-/phpunit.xml
-
-tests/_output/*
-tests/_support/_generated
+/runtime
+composer.lock

File diff suppressed because it is too large
+ 0 - 747
app/logs/app.log


+ 0 - 16
web/index-test.php

@@ -1,16 +0,0 @@
-<?php
-
-// NOTE: Make sure this file is not accessible when deployed to production
-if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
-    die('You are not allowed to access this file.');
-}
-
-defined('YII_DEBUG') or define('YII_DEBUG', true);
-defined('YII_ENV') or define('YII_ENV', 'test');
-
-require(__DIR__ . '/../vendor/autoload.php');
-require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
-
-$config = require(__DIR__ . '/../config/test.php');
-
-(new yii\web\Application($config))->run();