diff --git a/composer.json b/composer.json index cc07da5..14cd8e1 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,17 @@ "guzzlehttp/guzzle": "~6.0", "symfony/security": "^2.7" }, + "scripts": { + "gist-scripts": [ + "Gist\\Composer\\PostInstallHandler::execute" + ], + "post-install-cmd": [ + "@gist-scripts" + ], + "post-update-cmd": [ + "@gist-scripts" + ] + }, "autoload": { "psr-0": { "": "src/" diff --git a/propel-dist.yaml b/propel-dist.yaml index dd6f836..e88311b 100644 --- a/propel-dist.yaml +++ b/propel-dist.yaml @@ -4,9 +4,9 @@ propel: default: adapter: mysql classname: Propel\Runtime\Connection\ConnectionWrapper - dsn: "mysql:host=localhost;dbname=gist" - user: root - password: root + dsn: "mysql:host=DATABASE_HOST;dbname=DATABASE_NAME" + user: "DATABASE_USER" + password: "DATABASE_PASSWORD" settings: charset: utf8 queries: