File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,12 @@ git clone https://github.com/limatheus/laravel-deploy-openshift.git
12
12
cp -Rap .openshift /path/to/your/existing/application
13
13
```
14
14
15
- ### 3. Modify your ` config/database.php ` file changing the ` connection ` parameters to :
15
+ ### 3. Modify your ` config/database.php ` file changing the ` connection ` parameters according your database driver :
16
16
17
+ ### MySQL
17
18
``` php
18
19
// database.php config file
19
20
// file START ommited
20
- 'connections' => [
21
-
22
- 'sqlite' => [
23
- 'driver' => 'sqlite',
24
- 'database' => database_path('database.sqlite'),
25
- 'prefix' => '',
26
- ],
27
21
28
22
'mysql' => [
29
23
'driver' => 'mysql',
@@ -36,8 +30,17 @@ cp -Rap .openshift /path/to/your/existing/application
36
30
'collation' => 'utf8_unicode_ci',
37
31
'prefix' => '',
38
32
'strict' => false,
39
- ],
33
+ ]
40
34
35
+ // file END ommited
36
+ ```
37
+
38
+ ### PostgreSQL
39
+
40
+ ``` php
41
+ // database.php config file
42
+ // file START ommited
43
+
41
44
'pgsql' => [
42
45
'driver' => 'pgsql',
43
46
'host' => env('DB_HOST', env('OPENSHIFT_POSTGRESQL_DB_HOST', 'localhost')),
@@ -49,8 +52,9 @@ cp -Rap .openshift /path/to/your/existing/application
49
52
'prefix' => '',
50
53
'schema' => 'public',
51
54
]
52
- ],
55
+
53
56
// file END ommited
54
57
```
55
58
59
+
56
60
### 4. Add remote origin to your existing git config
You can’t perform that action at this time.
0 commit comments