mwr / magedeploy2 Goto Github PK
View Code? Open in Web Editor NEWMagento2 Deployment with Deployer
License: MIT License
Magento2 Deployment with Deployer
License: MIT License
Hi Matthias,
I was wondering, since Magento changed it's way of using var/generation I'd like to suggest to use:
'clean_dirs' => explode(',',getenv('CLEAN_DIRS')) ?: [
'var/cache',
'var/di',
'var/generation',
],
So we can use: CLEAN_DIRS = 'var/cache,generated/code,generated/metadata'
Let me know what you think,
Stevie
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.
Hey @mwr ,
with new version 2.3.0 i got an error while artifact building:
Parse error: syntax error, unexpected '=' in /builds/MairDumont/magento2-shop/deployment/vendor/mwltr/magedeploy2/src/Robo/RoboTasks.php on line 132
are you sure that the code in line 132 right structured ?
Best regards,
Eugen
I've generated my artifacts, but when I run server:setup local
, it complains that it cannot find the tar.gz file;
➜ magedeploy2-test./vendor/bin/dep server:setup local
➤ Executing task deploy:initialize
Deploying 20170317050054 to releases/20170317050054
✔ Ok
✔ Executing task deploy:prepare
✔ Executing task build:shared_dirs_generate
✔ Executing task deploy:release
➤ Executing task build:upload_artifacts
[RuntimeException]
Uploading path 'shop/shop.tar.gz' does not exist.
server:setup [-p|--parallel] [--no-hooks]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.