98 Commits

Author SHA1 Message Date
MoogyG
944f9bd582
Update update_code.php (#1958) 2020-04-20 23:56:31 +03:00
Beno!t POLASZEK
a8dabf03ee
Keep consistency with deployer executable naming (#2011) 2020-03-06 12:49:07 +03:00
Jono Menz
c0bf1d7913
Fix check_remote task revision resolution (#1995)
* Support branch & tag if specified
* Support shortened commit hashes
* Skip on first deployment
* Get true current ref from git

Fixes #1994
2020-02-01 22:15:53 +03:00
Vladimir Pak
377adf977a
Speedup deploy:clear_paths (#1992)
* Update clear_paths.php

one run much faster than several

* Update CHANGELOG.md
2020-01-30 12:08:11 +03:00
Jono Menz
b7a728b7b3
Fixes for check_remote task and SS recipe (#1991)
* Fix check_remote task

* Check remote head contents locally
* Ensure .dep/HEAD file is available so error isn’t thrown
* Document task usage

Fixes #1990

* Fix Silverstripe recipe

* Additionally check shared directory for assets since this directory is commonly excluded from project git repos
* Ensure shared_assets returns a non-null value so the release folder can’t get accidentally deleted

Fixes #1989

* Update CHANGELOG.md

* Clarified contribution instructions

* Update issue templates

Added a bug report template
2020-01-29 11:13:11 +03:00
u_mulder
861f1a34bb Add minor fixes for recipes steps (#1945) 2019-10-26 14:30:22 +03:00
Anton Medvedev
85aae9fd68 Add deploy:check_remote task 2019-08-12 21:01:32 +03:00
Anton Medvedev
4190e28fcb
Revert "Handle asterisk wildcard in shared files (#1895)" (#1897)
This reverts commit 6dd0a2c1f7eda33f9b5dbde287ffeda889e025de.
2019-08-08 11:26:20 +03:00
Vytautas Koryzna
6dd0a2c1f7 Handle asterisk wildcard in shared files (#1895) 2019-08-07 11:02:08 +03:00
Ahmad Mayahi
bb4d41c896 Add check_remote_head option to avoid unnecessary new releases by che… (#1759)
* Add check_remote_head option to avoid unnecessary new releases by checking the remote git HEAD without cloning the repo.

* Add check_remote_head into the CHANGELOG

* Add the pull request link to CHANGELOG

* Update CHANGELOG.md

Removed extra spaces: https://github.com/deployphp/deployer/pull/1759

* Fix changelog. Improve check_remote_head

* Use GrasefulSutdown exception instead of exit(0).

* Change bash if statement in check_remote_head.

* Remove redundant code.

* Replace if statement with test.
2019-08-06 21:52:41 +03:00
Andrey Helldar
2ef394e125 Fixed bug "Can't detect http user name." (#1876)
* Fixed bug "Can't detect http user name."

See:
* https://github.com/deployphp/deployer/issues/1778#issuecomment-507228046
* #1805

* Update writable.php
2019-07-01 15:37:15 +03:00
Kostadin A
82a00248fb Prevent dir creation when it is existing (#1858)
If "shared" directory is already existing just do not call mkdir, to prevent pointless update during processing of the "shared" files.
2019-06-07 06:17:16 +03:00
Jānis Gruzis
10ba0fae78 Avoid zombie processes in http user resolution. (#1805)
* Avoid zombie processes in http user resolution.

* Changelog improved.
2019-05-16 14:51:00 +07:00
Ján Regeš
c37f5998fc Added writable_recursive option (default: true) used in all writable modes (chmod, chown, chgrp, acl) (#1823)
* Added `writable_recursive` option (default: true) used in all writable modes (chmod, chown, chgrp, acl) (#1822)

* Update CHANGELOG.md
2019-03-31 20:11:54 +07:00
Filippo Tessarotto
ec0e8c4fdc Git: add option to disable --dissociate flag on cloning (#1820) 2019-03-28 20:26:42 +07:00
Pablo Escobar
8c3bcc3c8c issues 1788 (#1790)
Fix http_user detection
2019-01-11 18:54:52 +07:00
Marko Kruljac
ab290fb04f http_user detection command could return wrong user (#1779)
* Add test before http_user detection

Script will no attempt to longer detect http_user if there are more than 1 possible candidates.

* Update CHANGELOG.md

Updated for issue #1778

* Update CHANGELOG.md

Added missing link to issue

* Change detection strategy from bash test to php

This reduces the number of ssh calls to the remote host.
2019-01-02 19:44:33 +07:00
Philipp Bräutigam
ad8e77579d Pass-through the quiet mode into the git commands for updating code (#1724)
* Enabled quiet mode for git if the verbosity level is 16 (QUIET)

* Updated CHANGELOG.md
2018-10-05 13:20:49 +07:00
Bernhard Zürn
26c3400d53 Added Exception Handling for perhaps missing config param (#1677)
* modify wrong ticket url (#1605)

* moving the name column to the last position to show full name

- bug fix: #1579

* add changelog

* update changelog.md

* update CHANGELOG.md

* modify command to find http user

* modify command to find http user

* modify wrong ticket url

* Remove magento:enable from Magento 2 recipe (#1606)

* Remove magento:enable from Magento 2 recipe

Magento's module states are stored in app/etc/config.php. This task
ignored that and blindly enabled all installed modules.

* Mention the removal of magento:enable in the changelog

* Extend deploy:cleanup with tty allocation when using sudo. (#1607)

* Added option cleanup_tty to allow allocation when using sudo

* Added comment for new option cleanup_tty to CHANGELOG

* Allow to set template path in Drupal 7 Settings recipe (#1613)

* Change drupal:settings task to drupal:configure

* Drupal 7 recipe - Set template file path

* Changelog

* Fixed once() tasks that where being run multiple times with ParallelE… (#1624)

* Fixed once() tasks that where being run multiple times with ParallelExecutor

* CHANGELOG: reorder issue

* Add test case for parallel deploy on ->once() task

* Added cleanup_use_sudo option to all commands in deploy:cleanup (#1632)

* Added option cleanup_tty to allow allocation when using sudo

* Added comment for new option cleanup_tty to CHANGELOG

* Added cleanup_use_sudo option to all commands in cleanup.php

* Fix return types for fluent interface (#1638)

* Add Prestashop 1.6 recipe (#1641)

* Add Prestashop 1.6 recipe

* Update changelog

* Sleep between process status calls to prevent 100% CPU usage (#1654)

* Sleep between progress status calls to prevent 100% CPU usage

* Add changelog entry

* Typo in changelog entry

* Update ParallelExecutor.php

* Update ParallelExecutor.php

* locate binary with less subprocesses (#1634)

* Set custom user for CI environments (#1659)

* Detect CI user

* Update CHANGELOG.md

* Update README.md

* [deploy:writable] chgrp doesn't need http_user (#1660)

* deploy:writable: chgrp doesn't need http_user

* Update CHANGELOG.md

* Add missing deploy:writable entries (#1662)

* Fix missing deploy:shared entries (#1664)

* Added Exception Handling for perhaps missing config param

Sometimes deploy_path is not set and a cd into this folder is not possible. But the deployment can be successful without it.

* style

* #1677 fixes according pull-request feedback

* #1677 code style fixes

* Added Exception Handling for perhaps missing config param

Sometimes deploy_path is not set and a cd into this folder is not possible. But the deployment can be successful without it.

* style

* #1677 fixes according pull-request feedback

* #1677 code style fixes

* Changelog entry for #1677

* Changelog entry for #1677

* Changelog entry for #1677
2018-09-05 19:03:04 +07:00
Filippo Tessarotto
68d2cf32e9 [deploy:writable] chgrp doesn't need http_user (#1660)
* deploy:writable: chgrp doesn't need http_user

* Update CHANGELOG.md
2018-08-27 13:33:45 +07:00
klopschlike
218369dd02 Added cleanup_use_sudo option to all commands in deploy:cleanup (#1632)
* Added option cleanup_tty to allow allocation when using sudo

* Added comment for new option cleanup_tty to CHANGELOG

* Added cleanup_use_sudo option to all commands in cleanup.php
2018-08-27 13:33:45 +07:00
klopschlike
c9333cc376 Extend deploy:cleanup with tty allocation when using sudo. (#1607)
* Added option cleanup_tty to allow allocation when using sudo

* Added comment for new option cleanup_tty to CHANGELOG
2018-08-27 13:33:45 +07:00
Ryan Park
96f5edaebe moving the name column to the last position to show full name (#1580)
* moving the name column to the last position to show full name

- bug fix: #1579

* add changelog

* update changelog.md

* update CHANGELOG.md

* modify command to find http user

* modify command to find http user
2018-04-18 11:22:03 +07:00
Martin Supiot
006e0b16f3 fix typo (#1585) 2018-04-10 14:49:32 +07:00
Keith Bremner
35027de18b Update shared.php (#1571)
fix typos
2018-03-18 00:39:37 +07:00
pascal08
056db8a1b1 Improve readability of command for finding web server user (#1558)
* Improve readability of command for finding web server user

* Update CHANGELOG.md

* Add reference link to CHANGELOG.md
2018-02-22 20:56:14 +07:00
Gregor Harlan
c1e2633687 parse input before using dirname() (#1545)
* parse input of dirname()

* tests

* changelog
2018-02-14 15:44:35 +07:00
Anton Medvedev
7c1b8567cd
Revert "Missing {{bin/php}} in deploy:vendors" (#1537)
* Revert "create objects only when necessary (#1528)"

This reverts commit 0fc63021061f3265ccae203f549e958120ab968a.

* Revert "fixed typo (#1520)"

This reverts commit 971843db5d1ec706f6a8685108ad56f24dc9253f.

* Revert "throw meaningfull exception on errors in cd() (#1519)"

This reverts commit b139933b24e0f6c419e869a72e69e85955517b7f.

* Revert "Missing {{bin/php}} in deploy:vendors (#1521)"

This reverts commit 6dae113be8277bedb1e74658dfbf71e0712dd578.
2018-02-08 11:42:52 +07:00
Adam Gąsowski
6dae113be8 Missing {{bin/php}} in deploy:vendors (#1521)
* Missing {{bin/php}} in deploy:vendors

* Update CHANGELOG.md
2018-01-25 08:34:20 +07:00
Markus Staab
46bb2c8598 fixed typo (#1473) 2017-12-22 20:28:13 +07:00
Anton Medvedev
5c20d3c294 Apply fixes from StyleCI 2017-12-16 13:30:12 +00:00
Anton Medvedev
67063c3c24 Add tests for deploy:release 2017-12-16 20:29:52 +07:00
AgentSIB
8b5cfe8344 Get releases list before create metadata for current release 2017-12-16 01:52:44 +03:00
Markus Staab
eb31636368
more docs 2017-12-08 13:55:38 +01:00
Michael Erkens
18ecbcac73
fix whitespace 2017-11-27 11:18:22 +01:00
Michael Erkens
fe4dd4201a
permission denied for the git working direcotry
When using the "become" option in a host configuration, the work directory for git needs to be accesible for that user.
For example, the homedirectory from the user I use to SSH isn't readable for the user I use to deploy, so it fails with a "permission denied".
(also make sure to set the HOME enviroment variable so the correct git configuation can be read if needed)
2017-11-27 11:14:30 +01:00
Anton Medvedev
c34de4b4f9 Apply fixes from StyleCI 2017-09-01 05:39:26 +00:00
Anton Medvedev
dc96a73747 Catch Throwable instead of RuntimeException in deploy:update_code 2017-09-01 12:39:09 +07:00
Mathias Brodala
86196c9cfb Make branch less delicious 2017-08-14 14:43:31 +02:00
Anton Medvedev
8e01cf6924 Refactor environment variables handling 2017-08-12 20:31:19 +03:00
Anton Medvedev
d4205d0dcc Update writable.php 2017-08-12 18:50:41 +03:00
Anton Medvedev
80e68eced7 Merge branch 'master' into deploy_writable_tty 2017-08-12 18:49:52 +03:00
Anton Medvedev
53b0261c1b Refactor run and runLocally return type 2017-08-12 18:06:21 +03:00
Anton Medvedev
0a91193597 Fix 🥑 2017-08-12 17:44:17 +03:00
Anton Medvedev
2e02e76e88 Fix 🥝 2017-08-12 17:32:45 +03:00
Anton Medvedev
9c30226351 Fix tests 2017-08-12 17:07:21 +03:00
Anton Medvedev
d0dc58ec70 Fix tests 2017-08-12 16:52:29 +03:00
Anton Medvedev
d288c2d7e2 Fix tests 2017-08-12 16:43:25 +03:00
Anton Medvedev
a78fcc0619 Fix tests 2017-08-12 16:34:08 +03:00
Anton Medvedev
b2102488a2 Apply fixes from StyleCI 2017-08-12 08:56:47 +00:00