Initial commit with basic structure
This commit is contained in:
18
config/dev.php
Normal file
18
config/dev.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Silex\Provider\MonologServiceProvider;
|
||||
use Silex\Provider\WebProfilerServiceProvider;
|
||||
|
||||
// include the prod configuration
|
||||
require __DIR__.'/prod.php';
|
||||
|
||||
// enable the debug mode
|
||||
$app['debug'] = true;
|
||||
|
||||
$app->register(new MonologServiceProvider(), array(
|
||||
'monolog.logfile' => __DIR__.'/../var/logs/silex_dev.log',
|
||||
));
|
||||
|
||||
$app->register(new WebProfilerServiceProvider(), array(
|
||||
'profiler.cache_dir' => __DIR__.'/../var/cache/profiler',
|
||||
));
|
||||
7
config/prod.php
Normal file
7
config/prod.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// configure your app for the production environment
|
||||
|
||||
$app['twig.path'] = array(__DIR__.'/../templates');
|
||||
$app['twig.options'] = array('cache' => __DIR__.'/../var/cache/twig');
|
||||
$app['db_config'] = array('path' => '/home/backisbachus/gw2/stats.db', 'records_table' => 'records', 'diff_table' => 'diff');
|
||||
Reference in New Issue
Block a user