Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

config.local.neon

  • Loading branch information...
commit 99092862c2ee1f50fc53c02ffa61749ac899d6a5 1 parent c3eb665
@juzna authored
Showing with 22 additions and 31 deletions.
  1. +1 −0  .gitignore
  2. +2 −1  app/bootstrap.php
  3. +19 −30 app/config/config.neon
View
1  .gitignore
@@ -2,3 +2,4 @@ libs/*
!libs/.htaccess
temp/
log/
+app/config/config.local.neon
View
3  app/bootstrap.php
@@ -25,7 +25,8 @@
->register();
// Create Dependency Injection container from config.neon file
-$configurator->addConfig(__DIR__ . '/config/config.neon');
+$configurator->addConfig(APP_DIR . '/config/config.neon', FALSE);
+$configurator->addConfig(APP_DIR . '/config/config.local.neon', FALSE);
$container = $configurator->createContainer();
// Setup router
View
49 app/config/config.neon
@@ -1,39 +1,28 @@
-#
-# SECURITY WARNING: it is CRITICAL that this file & directory are NOT accessible directly via a web browser!
-#
-# If you don't protect this directory from direct web access, anybody will be able to see your passwords.
-# http://nette.org/security-warning
-#
-common:
- parameters:
+parameters:
- php:
- date.timezone: Europe/Prague
- # zlib.output_compression: yes
+php:
+ date.timezone: Europe/Prague
+ # zlib.output_compression: yes
- nette:
- application:
- errorPresenter: Error
+nette:
+ application:
+ errorPresenter: Error
- session:
- expiration: 14 days
+ session:
+ expiration: 14 days
- database:
- default:
- dsn: 'mysql:host=localhost;dbname=ladenka'
- user: root
- password:
+ database:
+ default:
+ # Override this settings in config.local.neon
+ dsn: 'mysql:host=localhost;dbname='
+ user:
+ password:
- services:
- authenticator: Authenticator
- recordService: RecordService
+services:
+ authenticator: Authenticator
+ recordService: RecordService
- factories:
-
-
-production < common:
-
-development < common:
+factories:
Please sign in to comment.
Something went wrong with that request. Please try again.