Browse Source

Test of post install script

Simon Vieille 5 months ago
parent
commit
2584014d78
No known key found for this signature in database
2 changed files with 14 additions and 3 deletions
  1. 11
    0
      composer.json
  2. 3
    3
      propel-dist.yaml

+ 11
- 0
composer.json View File

@@ -15,6 +15,17 @@
15 15
         "guzzlehttp/guzzle": "~6.0",
16 16
         "symfony/security": "^2.7"
17 17
     },
18
+    "scripts": {
19
+        "gist-scripts": [
20
+            "Gist\\Composer\\PostInstallHandler::execute"
21
+        ],
22
+        "post-install-cmd": [
23
+            "@gist-scripts"
24
+        ],
25
+        "post-update-cmd": [
26
+            "@gist-scripts"
27
+        ]
28
+    },
18 29
     "autoload": {
19 30
         "psr-0": {
20 31
             "": "src/"

+ 3
- 3
propel-dist.yaml View File

@@ -4,9 +4,9 @@ propel:
4 4
             default:
5 5
                 adapter: mysql
6 6
                 classname: Propel\Runtime\Connection\ConnectionWrapper
7
-                dsn: "mysql:host=localhost;dbname=gist"
8
-                user: root
9
-                password: root
7
+                dsn: "mysql:host=DATABASE_HOST;dbname=DATABASE_NAME"
8
+                user: "DATABASE_USER"
9
+                password: "DATABASE_PASSWORD"
10 10
                 settings:
11 11
                     charset: utf8
12 12
                     queries: