Skip to content

Commit 99e4b16

Browse files
committed
fix: WP specific file syncs
1 parent 4df8633 commit 99e4b16

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

app/Services/SyncService.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,11 @@ private function syncCore(Environment $from, Environment $to, string $direction)
392392

393393
foreach ($corePatterns as $pattern) {
394394
$sourcePath = rtrim($from->wordpress_path, '/').'/'.$pattern;
395-
$targetPath = rtrim($to->wordpress_path, '/').'/'.$pattern;
395+
if ($pattern === 'wp-*.php') {
396+
$targetPath = rtrim($to->wordpress_path, '/').'/';
397+
} else {
398+
$targetPath = rtrim($to->wordpress_path, '/').'/'.$pattern;
399+
}
396400

397401
if (! $from->is_local) {
398402
$sourcePath = "{$from->ssh_user}@{$from->ssh_host}:{$sourcePath}";

config/nativephp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* It is used to determine if the app needs to be updated.
77
* Increment this value every time you release a new version of your app.
88
*/
9-
'version' => '1.0.7',
9+
'version' => '1.0.8',
1010

1111
/**
1212
* The ID of your application. This should be a unique identifier

0 commit comments

Comments
 (0)