Skip to content

Commit

Permalink
Updated readme with config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnorthrip committed Dec 1, 2023
1 parent 1a18060 commit f26d848
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,59 @@ This is the contents of the published config file:

```php
return [

/*
|--------------------------------------------------------------------------
| Pull Data from a Remote Database
|--------------------------------------------------------------------------
|
| This file contains the configuration and credentials used when pulling
| database content from a remote mysql database over ssh connections.
|
*/

/* dbpull configuration */
'config' => [
'snapshot_file' => env('DBPULL_SNAPSHOT_FILE', '.dbpull.json'),
'default_remote' => env('DBPULL_DEFAULT_REMOTE', 'production'),
'skip_tables' => env('DBPULL_SKIP_TABLES', 'failed_jobs , jobs , migrations'),
'skip_migrations_check' => env('DBPULL_SKIP_MIGRATIONS_CHECCK', false),
'ids_only' => env('DBPULL_IDS_ONLY', false),
'ids_only_tables' => env('DBPULL_IDS_ONLY_TABLES', false),
'ids_only_tables_prefix' => env('DBPULL_IDS_ONLY_TABLES_PREFIX', false),
'skip_updates' => env('DBPULL_SKIP_UPDATES', false),
'skip_updates_tables' => env('DBPULL_SKIP_UPDATES_TABLES'),
'skip_updates_tables_prefix' => env('DBPULL_SKIP_UPDATES_TABLES_PREFIX'),
'skip_deletes' => env('DBPULL_SKIP_DELETES', false),
'skip_deletes_tables' => env('DBPULL_SKIP_DELETES_TABLES'),
'skip_deletes_tables_prefix' => env('DBPULL_SKIP_DELETES_TABLES_PREFIX'),
],

/* local - uses the standard laravel envs */
'local' => [
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'base_path' => env('DBPULL_LOCAL_BASE_PATH', base_path()),
'migrations_path' => env('DBPULL_LOCAL_MIGRATIONS_PATH', database_path('migrations')),
'pulls_path' => env('DBPULL_LOCAL_PULLS_PATH', database_path('pulls')),
],

/* production */
'production' => [
'host' => env('DBPULL_PRODUCTION_DB_HOST', '127.0.0.1'),
'port' => env('DBPULL_PRODUCTION_DB_PORT', '3306'),
'database' => env('DBPULL_PRODUCTION_DB_DATABASE'),
'username' => env('DBPULL_PRODUCTION_DB_USERNAME'),
'password' => env('DBPULL_PRODUCTION_DB_PASSWORD'),
'base_path' => env('DBPULL_PRODUCTION_BASE_PATH'),
'migrations_path' => env('DBPULL_PRODUCTION_MIGRATIONS_PATH', 'database/migrations'),
'ssh' => env('DBPULL_PRODUCTION_SSH'),
],

/* copy the block above to add additional remote source */
];
```

Expand Down

0 comments on commit f26d848

Please sign in to comment.