File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 73
73
'targetConnection ' => env ('LOCAL_TARGET_CONNECTION ' , 'mysql ' ),
74
74
75
75
'mysqldumpSkipTzUtc ' => env ('REMOTE_MYSQLDUMP_SKIP_TZ_UTC ' , false ),
76
+
77
+
78
+ /*
79
+ * List all the environment variables that need to be set for the command to work
80
+ */
81
+ 'environments ' => [
82
+ 'local ' ,
83
+ 'staging '
84
+ ],
76
85
77
86
'localMysqlPath ' => env ('LOCAL_MYSQL_PATH ' , '/usr/local/bin/mysql ' ),
78
87
];
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function handle(): bool
14
14
{
15
15
$ inTest = $ this ->option ('test ' );
16
16
17
- if (! in_array (config ('app.env ' ), [ ' local ' , ' staging ' ] )) {
17
+ if (! in_array (config ('app.env ' ), config ( ' dbsync.environments ' ) )) {
18
18
$ this ->error ('DB sync will only run on local and staging environments ' );
19
19
20
20
return true ;
You can’t perform that action at this time.
0 commit comments