Skip to content

Commit d004591

Browse files
committed
Update README.md
1 parent 9dfaea2 commit d004591

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,12 @@ git clone https://github.com/limatheus/laravel-deploy-openshift.git
1212
cp -Rap .openshift /path/to/your/existing/application
1313
```
1414

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:
1616

17+
### MySQL
1718
```php
1819
// database.php config file
1920
// file START ommited
20-
'connections' => [
21-
22-
'sqlite' => [
23-
'driver' => 'sqlite',
24-
'database' => database_path('database.sqlite'),
25-
'prefix' => '',
26-
],
2721

2822
'mysql' => [
2923
'driver' => 'mysql',
@@ -36,8 +30,17 @@ cp -Rap .openshift /path/to/your/existing/application
3630
'collation' => 'utf8_unicode_ci',
3731
'prefix' => '',
3832
'strict' => false,
39-
],
33+
]
4034

35+
// file END ommited
36+
```
37+
38+
### PostgreSQL
39+
40+
```php
41+
// database.php config file
42+
// file START ommited
43+
4144
'pgsql' => [
4245
'driver' => 'pgsql',
4346
'host' => env('DB_HOST', env('OPENSHIFT_POSTGRESQL_DB_HOST', 'localhost')),
@@ -49,8 +52,9 @@ cp -Rap .openshift /path/to/your/existing/application
4952
'prefix' => '',
5053
'schema' => 'public',
5154
]
52-
],
55+
5356
// file END ommited
5457
```
5558

59+
5660
### 4. Add remote origin to your existing git config

0 commit comments

Comments
 (0)