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
I wanted to drive test this program (without real ftp) and I used as remote something like file:///tmp/testDestination, but I got an error about remote being invalid.
A fix, below (tested):
diff --git a/src/Deployment/CliRunner.php b/src/Deployment/CliRunner.php
index 3c53073..efaf38b 100644
--- a/src/Deployment/CliRunner.php
+++ b/src/Deployment/CliRunner.php
@@ -110,7 +110,8 @@ class CliRunner
if (
empty($config['remote'])
|| !($urlParts = parse_url($config['remote']))
- || !isset($urlParts['scheme'], $urlParts['host'])
+ || !isset($urlParts['scheme'])
+ || (($urlParts['scheme'] != 'file') && !isset($urlParts['host']))
) {
throw new \Exception("Missing or invalid 'remote' URL in config.");
}
The text was updated successfully, but these errors were encountered:
I wanted to drive test this program (without real ftp) and I used as remote something like file:///tmp/testDestination, but I got an error about remote being invalid.
A fix, below (tested):
The text was updated successfully, but these errors were encountered: