You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,16 @@ Laravel utility to keep records synced between enviroments through source contro
8
8
- Run `php artisan vendor:publish --provider="distinctm\LaravelDataSync\DataSyncBaseServiceProvider" --tag="data-sync-config"` to publish config file. Specify directory for sync data files (default is a new sync directory in the project root)
9
9
- Run `php artisan data:sync`
10
10
11
+
### Optional
12
+
If using Laravel Forge, you can have the data sync run automatically on deploy. Edit your deploy script in Site -> App to include:
13
+
```
14
+
if [ -f artisan ]
15
+
then
16
+
php artisan data:sync
17
+
php artisan migrate --force
18
+
fi
19
+
```
20
+
11
21
## Notes
12
22
- empty values are skipped
13
23
- the criteria/attributes for updateOrCreate are identified with a preleading underscore
0 commit comments