Skip to content
Permalink
Browse files

Move config parameters to config/prod.php

- config/prod.dist.php should be renamed to config/prod.php on production
  • Loading branch information...
eibt committed Jul 4, 2017
1 parent b41b358 commit aedae29c00b767e1579d0c0e3c82ecbb8d2ede63
Showing with 21 additions and 16 deletions.
  1. +1 −0 .gitignore
  2. +19 −0 config/prod.dist.php
  3. +0 −6 config/prod.php
  4. +1 −10 src/app.php
@@ -1,3 +1,4 @@
/vendor/
/docker/db/
/web/files/
/config/prod.php
@@ -0,0 +1,19 @@
<?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.options'] = array(
'driver' => 'pdo_mysql',
'host' => 'localhost',
'dbname' => 'geocaching',
'user' => 'user',
'password' => 'password',
'port' => 3306
);
$app['google.options'] = array(
'api_key' => 'YOUR_GOOGLE_API_KEY'
);
$app['github_url'] = 'https://github.com/eibt/geocaching-tool';
$app['version'] = '0.1';

This file was deleted.

@@ -18,16 +18,7 @@
return $twig;
});
$app->register(new Silex\Provider\DoctrineServiceProvider(), array(
'db.options' => array(
'driver' => 'pdo_mysql',
'host' => 'db',
'dbname' => 'geocaching',
'user' => 'root',
'password' => 'mysql',
'port' => 3306
),
));
$app->register(new Silex\Provider\DoctrineServiceProvider());
$app->register(new \GeocachingTool\Provider\UserServiceProvider());
$app->register(new FormServiceProvider());
$app->register(new Silex\Provider\TranslationServiceProvider(), array(

0 comments on commit aedae29

Please sign in to comment.
You can’t perform that action at this time.