From e9b10802d1c213a848d33cb9f0a77cb86511e67a Mon Sep 17 00:00:00 2001 From: andibraeu Date: Tue, 29 Jul 2014 22:47:20 +0200 Subject: [PATCH 1/2] support sqlite database path in config --- app/config/config.yml | 2 +- app/config/parameters.yml.dist | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config/config.yml b/app/config/config.yml index ad67c1d..a9fdf65 100755 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -60,7 +60,7 @@ doctrine: charset: UTF8 # if using pdo_sqlite as your database driver, add the path in parameters.yml # e.g. database_path: "%kernel.root_dir%/data/data.db3" - # path: "%database_path%" + path: "%database_path%" orm: auto_generate_proxy_classes: "%kernel.debug%" diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist index ebdabb5..8b735b7 100644 --- a/app/config/parameters.yml.dist +++ b/app/config/parameters.yml.dist @@ -5,6 +5,7 @@ parameters: database_name: symfony database_user: root database_password: ~ + database_path: "%kernel.root_dir%/ffcal.sqlite3" mailer_transport: smtp mailer_host: 127.0.0.1 -- 2.39.5 From b9a4af7b82ec0f88777878ab4d03b1fb1ee02995 Mon Sep 17 00:00:00 2001 From: andibraeu Date: Tue, 29 Jul 2014 22:53:30 +0200 Subject: [PATCH 2/2] Install instructions tell about database options --- INSTALL.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 1256929..ba121f3 100755 --- a/INSTALL.md +++ b/INSTALL.md @@ -15,6 +15,8 @@ Diese Anleitung geht davon aus das du SSH-Zugriff auf deinen Server hast. Wenn d 3. Abhängigkeiten installieren 1. composer herunterladen ```curl -sS https://getcomposer.org/installer | php``` 2. Installation ausführen: ```php composer.phar install``` + - für MySQL wähle pdo_mysql als Datenbanktreiber + - für SQLite ist pdo_sqlite zu nutzen, dabei ist der Pfad anzugeben. Der Standardpfad legt die Datei ffcal.sqlite3 im Verzeichnis app an. 5. Dann die Tabellen erstellen: ```php app/console doctrine:schema:update --force``` 6. Cache löschen ```php app/console cache:clear --env=prod --no-debug``` 7. Assets dumpen ```php app/console assetic:dump --env=prod --no-debug``` -- 2.39.5