1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00
This commit is contained in:
Simon Vieille 2016-09-28 00:25:47 +02:00
parent 1006e079f6
commit 841211a63a
2 changed files with 42 additions and 3 deletions

View File

@ -40,9 +40,49 @@ Installation
$ git clone https://gitnet.fr/deblan/gist
$ cd gist
$ make
### Database
$ mv propel-dist.yaml propel.yaml
$ # EDIT propel.yaml (dsn)
$ make propel
Edit `propel.yaml`. **Use spaces instead of tabulations**.
**MySQL**
propel:
database:
connections:
default:
adapter: mysql
# http://www.php.net/manual/en/ref.pdo-mysql.connection.php
dsn: "mysql:host=DATABASE_SERVER;dbname=DATABASE_NAME"
user: DATEBASE_USER
password: DATEBASE_PASSWORD
settings:
charset: utf8
queries:
utf8: "SET NAMES utf8 COLLATE utf8_unicode_ci, COLLATION_CONNECTION = utf8_unicode_ci, COLLATION_DATABASE = utf8_unicode_ci, COLLATION_SERVER = utf8_unicode_ci"
[...]
Then `$ make propel`.
**SQLITE**
propel:
database:
connections:
default:
adapter: sqlite
# http://www.php.net/manual/en/ref.pdo-sqlite.connection.php
dsn: "sqlite:/PATH/TO/gist.sqlite"
user: ~
password: ~
[...]
Then `$ make propel`.
Edit `app/bootstrap.php.d/70-security.php` and modify the value of `$app['token']` with a strong secret phrase.

View File

@ -7,7 +7,6 @@ propel:
dsn: "mysql:host=localhost;dbname=gist"
user: root
password: root
attributes:
settings:
charset: utf8
queries: