1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-24 08:18:48 -05:00

[add] dev environment

This commit is contained in:
Nicolas Lœuillet 2014-01-16 14:46:07 +01:00
parent 6f6e7e6dc0
commit 5d7aeb0fb8
2 changed files with 15 additions and 2 deletions

View File

@ -10,6 +10,4 @@ require_once __DIR__.'/../vendor/full-text-rss/autoload.php';
require_once __DIR__.'/../app/app.php';
require_once __DIR__.'/../app/controllers/controllers.php';
$app['debug'] = true;
$app->run();

15
web/index_dev.php Normal file
View File

@ -0,0 +1,15 @@
<?php
$filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
if (php_sapi_name() === 'cli-server' && is_file($filename)) {
return false;
}
require_once __DIR__.'/../vendor/autoload.php';
require_once __DIR__.'/../vendor/full-text-rss/autoload.php';
require_once __DIR__.'/../app/app.php';
require_once __DIR__.'/../app/controllers/controllers.php';
$app['debug'] = true;
$app->run();