vs-deploy icon indicating copy to clipboard operation
vs-deploy copied to clipboard

For local (SMB) deploy to Windows Server, Deploy fails trying to make existing dir

Open boarmanc opened this issue 5 years ago • 0 comments

I am trying to deploy to a windows file share named htdocs on server win-efedehe4j1i. Deploy fails trying to call mkdir on a dir (//win-efedehe4j1i/htdocs) that is already there. The share is fully accessible from the client; I have no problem creating or copying files from the client to the share manually.

Here are the settings:

 `"deploy": {
		"packages": [
			{
				"name": "eSM ",
				"description": "eSM version x",
				"files": [
					"Source/htdocs/**/*.php"
				]
			}
		],
		"targets": [
			{
				"type": "local",
				"name": "Remote htdocs",
				"description": "htdocs on win-efedehe4j1i",
				"dir": "//win-efedehe4j1i/htdocs",
				"mappings": [
					{
						"source": "Source/htdocs",
						"target": "/"
					}
				]	
			}
		]			
	}`

When deploying a single test file with the above settings, I get:

Could not deploy file 'c:\Code\eSM\cboarman_APERIO-01644_eSlideManager_Dev\Source\htdocs\Login.php': Error: UNKNOWN: unknown error, mkdir '\win-efedehe4j1i\htdocs'

Why is it trying to create a directory that is already there?

When I replace "local" with "test", it passes and I get:

Deploying file 'c:\Code\eSM\cboarman_APERIO-01644_eSlideManager_Dev\Source\htdocs\Login.php' to '/Login.php' ('Remote htdocs')... [OK] Finished

boarmanc avatar Oct 12 '18 00:10 boarmanc