Marcus Jaschen
fe3874370b
Use correct Git ref spec when sub_directory
is specified. ( #3138 )
...
* Use correct Git ref spec when `sub_directory` is specified.
The bug is described in detail in issue #3137 .
* change variable name for sub-directory target (as requested in PR)
2022-05-24 21:36:50 +02:00
Tom Scott-Malden
97cbbd4d79
Add username in deploy:lock error message ( #3046 )
...
* Update to the lock recipe so that it shows you who currently has the lock on the deployment
* DD#0000: feat: Updated joy test
* DD#0000: feat: Regenerated docs
2022-03-22 15:27:41 +01:00
Anton Medvedev
208bf652fe
Fix sub_directory update code strategy
2022-03-17 20:07:19 +01:00
Anton Medvedev
cab76aee6b
Limit release_log to 300
2022-03-13 00:45:30 +01:00
Anton Medvedev
4ec52d645e
Update info.php
2022-03-03 22:20:50 +01:00
matsn0w
baece5a6e3
Add an option to deploy only a sub-folder of the repository ( #2821 )
...
* add new sub_directory option
* update docs
* Update docs/recipe/deploy/update_code.md
Co-authored-by: Mario Ramundo <ramundomario@gmail.com>
Co-authored-by: Mario Ramundo <ramundomario@gmail.com>
Co-authored-by: Anton Medvedev <anton@medv.io>
2022-03-03 21:35:25 +01:00
Yanick Witschi
fdb18d0a8e
Make sure to use the correct PHP binary with existing Composer ( #2967 )
...
* Make sure to use the correct PHP binary with existing Composer
* Typo
* Typo again
2022-03-03 21:15:49 +01:00
Dr. Ulrich Thomas Gabor
b6d646d8e3
Use -L on chgrp ( #2834 )
2022-01-17 19:22:12 +01:00
Thomas
ca6eb27232
Don't add remote user to setfacl command, if it doesn't exist as an os user ( #2822 )
...
* Update writable.php
Only add the the remote user to setfacl command if he exists as an os user.
* Replace is_int() with !empty().
run() usually returns a string, so the static analyzer throws an error, when using is_int() on its return value.
* Use test() instead of run()
Use test() instead of run to check whether the remote user also exists as an os user.
2022-01-15 13:36:13 +01:00
Anton Medvedev
a616c9ecf8
Update writable.php
2022-01-13 21:26:03 +01:00
Anton Medvedev
a52ae3da6a
Small fixes
2022-01-13 14:30:46 +01:00
Anton Medvedev
a92bec4880
Remove unused use.
2022-01-13 14:30:42 +01:00
Alex Mayer
2ff8593027
Refactor deploy:cleanup Command ( #2788 )
...
* Refactor deploy:cleanup Command
Remove $runOpts since it's not actually used
Move release symlink deletion to beginning of method. This will
allow the release symlink to be deleted even if deleting the old
releases fails.
* Refactor deploy:releases_log
Fixes issue where multiple failed releases in a row cause old
releases to not be cleaned up.
Fixes #2759
Co-authored-by: Anton Medvedev <anton@medv.io>
2022-01-13 14:29:32 +01:00
Anton Medvedev
45e4708aad
Use StrictHostKeyChecking=accept-new by default
...
Don't prefix composer with {{bin/php}} if the composer found with which().
2022-01-13 14:17:08 +01:00
Anton Medvedev
fb6f2154ef
Use StrictHostKeyChecking=accept-new by default
...
I deleted code which was doing known_host population manually as it was buggy. The StrictHostKeyChecking=accept-new is exactly what we need.
2022-01-11 19:56:59 +01:00
Luca Rath-Heel
8c14ae44b7
Cd to deploy_path in release_name callback
...
* Update release.php
* Run bin/docgen
* Update release.php
2022-01-11 19:07:29 +01:00
Dr. Ulrich Thomas Gabor
43953628cf
Fix for #2850 ( #2852 ): whoami fails on some hosters
2022-01-10 19:49:04 +01:00
Anton Medvedev
465aed48d8
Improve deploy:info task
2021-11-21 11:30:08 +01:00
Anton Medvedev
92a0eb6eb1
Refactor deploy:update_code to use target config
2021-11-21 11:20:42 +01:00
Anton Medvedev
3e1540440e
Remove shallow() task method
2021-11-21 10:57:25 +01:00
Anton Medvedev
55879f95ee
Replace ``bash with
``
2021-11-10 23:20:32 +01:00
Jamie Burchell
272201779b
Fix minor typos in comments ( #2744 )
2021-11-10 22:36:20 +01:00
Anton Medvedev
a2b3da8c32
Add *s
2021-11-08 22:59:39 +01:00
Anton Medvedev
a50aac23c6
Typo in desc
2021-11-07 09:32:46 +01:00
Anton Medvedev
fe14f02aec
Add doc on releases task
2021-11-07 00:29:15 +01:00
Anton Medvedev
1cd8ae2138
Add rollback docs
2021-11-05 23:17:29 +01:00
Anton Medvedev
0c7c0b1af6
Rename locateBinaryPath to which
2021-11-05 15:23:34 +01:00
Anton Medvedev
dc4a75ce3d
Don't use {{remote_user}} in writable
2021-10-27 00:40:18 +02:00
Anton Medvedev
d7011cc185
Don't modify state inside set callback
2021-10-22 23:22:18 +02:00
Anton Medvedev
7f39d1fd04
Move configs around and update docs
2021-10-18 18:29:14 +02:00
Anton Medvedev
113e5cca80
Make deploy:lock little faster
2021-10-16 00:28:06 +02:00
Anton Medvedev
c568c3d934
Add better error message
2021-10-13 21:31:26 +02:00
Anton Medvedev
377b722611
Refactor checkout strategy to clone
2021-10-12 22:49:34 +02:00
Anton Medvedev
ded366723f
Speed up deploy:setup task
2021-10-11 22:10:47 +02:00
Anton Medvedev
1b71c9cd81
Fix desc spelling
2021-10-11 22:10:24 +02:00
Anton Medvedev
09328c3ecf
No caddy in http_{user,group} detection
2021-10-11 22:10:05 +02:00
Anton Medvedev
3105caa1ce
Refactor deploy:is-unlocked to deploy:is_locked
2021-10-11 22:08:58 +02:00
Anton Medvedev
25c7defe14
Add desc
2021-10-11 22:07:45 +02:00
Anton Medvedev
9b01d7955c
Fix typo
2021-10-11 22:04:08 +02:00
Anton Medvedev
c40a1bc428
Update comment
2021-10-09 17:52:01 +02:00
Anton Medvedev
7de69d68d0
Swap if&else with sudo
2021-10-08 12:43:15 +02:00
Anton Medvedev
1fa138efff
Update writable.php
2021-10-08 12:39:12 +02:00
Anton Medvedev
dbcc982616
Add timestamp function
2021-10-08 09:54:21 +02:00
Anton Medvedev
8ebcbea5b6
Back to acl
2021-09-28 08:16:07 +02:00
Anton Medvedev
8380f85105
Update writable.php
2021-09-28 08:01:51 +02:00
Anton Medvedev
d4a4fdcbdc
Fix e2e
2021-09-24 16:37:47 +02:00
Anton Medvedev
6b73b44a2f
Fix e2e
2021-09-24 16:34:10 +02:00
Anton Medvedev
70271ba682
Fixes
2021-09-24 16:30:29 +02:00
Anton Medvedev
69d06d60d4
Fix writable.php
2021-09-24 16:26:45 +02:00
Anton Medvedev
d2c4521b7a
Add update_code_strategy
2021-09-24 16:16:15 +02:00