ansistrano / deploy

Ansible role to deploy scripting applications like PHP, Python, Ruby, etc. in a capistrano style
https://ansistrano.com
MIT License
2.37k stars 343 forks source link

update-code: local copy via zip style added #280

Closed cjng96 closed 5 years ago

cjng96 commented 6 years ago

general copy style deployment very slow to me. :( So I make compression and copy and decompress style copy method added named "zip" but it's gz really but zip :-)

ricardclau commented 6 years ago

Hi! Happy to add this but please add a test for this, update the docs, respect CS in YML files and use Ansible modules for local_actions

I would also name the strategy copy_zipped

cjng96 commented 6 years ago

I added test code and string into manual. and replace some local_action. but I can't replace command for zip source file to archive module. :( archive module have many limitations to exclude files. and it's can't manage link file.

cjng96 commented 6 years ago

I am a newbie on ansible. :( the test written by me is failed but I dont' understand why it's fail

copy_zipped test code succeed. but after it download test? it's using /tmp/copy_zipped folder I don't know the reason. Can you advise? TASK [local-ansistrano : ANSISTRANO | download | Download artifact] ************ fatal: [localhost]: FAILED! => {"changed": false, "dest": "/tmp/copy_zipped/my-app.com/releases/20180122123108Z/somearchive.tar.gz", "failed": true, "msg": "Request failed", "response": "HTTP Error 404: Not Found", "state": "absent", "status_code": 404, "url": "https://github.com/someproject/somearchive.tar.gz"} to retry, use: --limit @/home/travis/build/ansistrano/deploy/test/main.retry

ricardclau commented 5 years ago

Closing due to lack of activity and interest. Feel free to open a new PR even though this can be achieved with hooks and strategies like copy_unarchive