zend-patterns / ZendServerSDK

Pure ZF2 CLI for zpk creation and webapi client.
BSD 3-Clause "New" or "Revised" License
22 stars 17 forks source link

packZpk is adding deployment scripts into scripts/scripts directory #5

Closed swilczynski closed 11 years ago

swilczynski commented 11 years ago

It is creating scripts directory inside another scripts directory which makes Zend Server unable to unpack and execute deployment scripts like post_stage.php

This issue is probably caused by pack method of ZpkInvokable where it calls

$zpk->addFile($fullPath, $this->fixZipPath($baseDir.$path));

For scripts directory it tries to do

$zpk->addFile($fullPath, $this->fixZipPath('scripts/'.'scripts/post_stage.php'));

slaff commented 11 years ago

Confirmed bug.

slaff commented 11 years ago

The customer confirmed that the fix works for him.

ryanheath86 commented 9 years ago

I created a pull request for this issue and it now works for me..

I didn't see a fix in the latest release or dev version, so I'm not sure if this was fixed yet

https://github.com/zend-patterns/ZendServerSDK/pull/56