mwr / magedeploy2

Magento2 Deployment with Deployer
MIT License
28 stars 10 forks source link

artifacts folder does not exist automatically #3

Closed peterjaap closed 6 years ago

peterjaap commented 7 years ago
New version of deployed files: 1489763125
 [Mwltr\Robo\Magento2\Task\SetupStaticContentDeployTask] Done in 40.898s
➜
➜                                  GENERATE ARTIFACTS
➜
 [Progress] cleanup old packages
 [Filesystem\FilesystemStack] remove ["artifacts\/var_di.tar.gz"]
 [Filesystem\FilesystemStack] remove ["artifacts\/var_generation.tar.gz"]
 [Filesystem\FilesystemStack] remove ["artifacts\/pub_static.tar.gz"]
 [Filesystem\FilesystemStack] remove ["artifacts\/shop.tar.gz"]
 [Progress] creating packages
 [Exec] Running /usr/bin/tar  -czf ../artifacts/var_di.tar.gz var/di in shop
tar: Failed to open '../artifacts/var_di.tar.gz'
 [Exec]  Exit code 1  Time 0.017s
 [notice] Stopping on fail. Exiting....
 [error]  Exit Code: 1
 [error]    in task Robo\Task\Base\Exec

The folder artifacts isn't created automatically, so I had to manually create it to avoid this warning.

mwr commented 7 years ago

OK, thanks for the hint. That's something that should be easy to fix.

mwr commented 7 years ago

Just created a new release containing a fix for this. artifacts-dir will now be created if it is missing. Version is 1.3.0, should come in with composer update