|
9 | 9 | | |
10 | 10 | | Environments that should be available for import. |
11 | 11 | | |
| 12 | + | Each environment supports the following settings: |
| 13 | + | - ssh_host: The SSH host to connect to. |
| 14 | + | - ssh_username: The SSH username to use. |
| 15 | + | - ssh_key: The SSH private key to use (optional if ssh_password is used). |
| 16 | + | - ssh_password: The SSH password to use (overrules ssh_key if present). |
| 17 | + | - ssh_base_path: The base path of the project on the remote server. |
| 18 | + | |
| 19 | + | - db_type: The database connection type. Supported types: `mysql` (default), `mariadb`, `mongodb`, `pgsql` and `sqlite`. |
| 20 | + | - db_host: The database host. |
| 21 | + | - db_name: The database name. |
| 22 | + | - db_username: The database username. |
| 23 | + | - db_password: The database password. |
| 24 | + | - db_port: The database port. |
| 25 | + | - db_use_ssh: Whether to use an SSH tunnel to connect to the database. |
| 26 | + | - db_ssh_tunnel_port: The local port to use for the SSH tunnel. |
| 27 | + | |
12 | 28 | */ |
13 | 29 |
|
14 | 30 | 'environments' => [ |
15 | 31 | 'staging' => [ |
16 | 32 | 'ssh_host' => env('LEI_STAGING_SSH_HOST'), |
17 | 33 | 'ssh_username' => env('LEI_STAGING_SSH_USERNAME'), |
18 | 34 | 'ssh_key' => env('LEI_STAGING_SSH_KEY', '~/.ssh/id_rsa'), |
19 | | - 'ssh_password' => env('LEI_STAGING_SSH_PASSWORD'), // Overrules ssh_key if present |
| 35 | + 'ssh_password' => env('LEI_STAGING_SSH_PASSWORD'), |
20 | 36 | 'ssh_base_path' => env('LEI_STAGING_SSH_BASE_PATH'), |
21 | 37 |
|
| 38 | + 'db_type' => env('LEI_STAGING_DB_TYPE', 'mysql'), |
22 | 39 | 'db_host' => env('LEI_STAGING_DB_HOST'), |
23 | 40 | 'db_name' => env('LEI_STAGING_DB_NAME'), |
24 | 41 | 'db_username' => env('LEI_STAGING_DB_USERNAME'), |
|
32 | 49 | 'ssh_host' => env('LEI_PRODUCTION_SSH_HOST'), |
33 | 50 | 'ssh_username' => env('LEI_PRODUCTION_SSH_USERNAME'), |
34 | 51 | 'ssh_key' => env('LEI_PRODUCTION_SSH_KEY', '~/.ssh/id_rsa'), |
35 | | - 'ssh_password' => env('LEI_PRODUCTION_SSH_PASSWORD'), // Overrules ssh_key if present |
| 52 | + 'ssh_password' => env('LEI_PRODUCTION_SSH_PASSWORD'), |
36 | 53 | 'ssh_base_path' => env('LEI_PRODUCTION_SSH_BASE_PATH'), |
37 | 54 |
|
| 55 | + 'db_type' => env('LEI_PRODUCTION_DB_TYPE', 'mysql'), |
38 | 56 | 'db_host' => env('LEI_PRODUCTION_DB_HOST'), |
39 | 57 | 'db_name' => env('LEI_PRODUCTION_DB_NAME'), |
40 | 58 | 'db_username' => env('LEI_PRODUCTION_DB_USERNAME'), |
|
0 commit comments