722 Commits

Author SHA1 Message Date
Fabian Schmengler /
f9b5c1e52b
Magento 2: Only set maintenance mode once if needed (#3469)
* Only set maintenance mode once if needed

Also:
- by adding magento:maintenance:enable-if-needed to the task list instead of invoking it directly, it is now possible to use after() to add custom tasks to be performed in maintenance mode
- the maintenance_mode_status_active check was removed because it is unnecessary and can return wrong results because of caching

* Update docs
2023-03-06 19:41:41 +01:00
Wilfried Wolf
b565fdcc58
Adds Comments to magento2 recipe and modifies DocGen, to be able to explain artifact deployment (#3510)
* adds sticky to writable recipe

chgrp for all files, chmod g+rwxs for directories, chmod g+rw for files

* adds artifact deployment for magento2 recipe

* Updates Documentation

* removes mode that has been submitted in other MR

* adds divers discussion results from PR #3317

- uses contrib/cachetool
- removes task build:prepare-env
- comments additional_shared_files and additonal_shared_dirs
- avoids invoke()

* updates docs

* corrects additional shared

* expands DocGen for artifact deployment and adds documentation to the magento2 recipe

* corrects missing capital and typo

---------

Co-authored-by: Anton Medvedev <anton@medv.io>
2023-03-06 12:49:42 +01:00
HereticPilgrim
e6a3364fc0
Added missing deploy task to recipe/common (#3526)
Co-authored-by: HereticPilgrim <manuel.grauwiler@transformatik.ch>
2023-03-02 19:05:13 +01:00
Anton Medvedev
2ac3b89d97 Fix branch deploy for clone strategy 2023-03-01 21:12:14 +01:00
Dr. Ulrich Thomas Gabor
fa2ce9ac0f
Shopware Flex has no build.sh anymore (#3513)
The new [Shopware template](https://developer.shopware.com/docs/guides/installation/template) does not have a `bin/build.sh` file anymore. The missing executable executed `composer install` and `bin/build-js.sh`. Since requiring the new Symfony flex recipe requires running `composer` manually, we just execute `bin/build-js.sh` now.

This could be a breaking change for some users. Don't know if you want to state that somewhere or allow a way to restore the old behavior via flag (although one can just override the `sw-build-without-db:build` task anytime).
2023-02-25 17:29:04 +01:00
Daniel Hormess
aeec635a2d
Fixed bin/console calls in shopware recipe (#3512)
* Fixed bin/console calls in shopware recipe

* Added generated docs

---------

Co-authored-by: Daniel Hormess <daniel@proudcommerce.com>
2023-02-24 18:22:55 +01:00
akosglue
6190cbead3
fix typo in magento recipe (#3498) 2023-02-22 09:03:59 +01:00
Jan Henk Hazelaar
3953996a30
Add remote option to update_code_strategy to rename remote to repository (#3466)
* Add 'remote' option to 'update_code_strategy'

* Using archive and then add remote to speedup deployment

* Optimize remote option and add documentation

* Optimize code

* Update docs

* Combine clone and remote to remove duplicate code

* Removed  option and merge functionality into  option

* Generate docs

* Generate docs
2023-02-10 23:51:27 +01:00
Fabian Schmengler /
762a177ce1
Magento: allow subdirectory and create variable for bin/magento (#3460)
* Magento: create variable for bin/magento

so it can be overridden to a custom location

* Update docs

* Allow Magento to be installed in a subdirectory

* Update docs

* Use Magento subdirectory for composer command

* Fix bin/magento call in magento_version function

* Update docs

* Update docs

* Combine magento_dir and bin/magento configurations correctly
2023-02-09 14:17:39 +01:00
Dominik Schilling
1fb2d6f3cd
Simplify loop in releases_list (#3471)
* Avoid calling count() in loop
* Remove extra variable for release name
* Reverse the array before for clarity
2023-01-30 21:19:57 +01:00
Fabian Schmengler /
8a94172fd5
Magento: Fix artifact_path generation (#3459)
* Magento: Fix artifact_path generation

- Fix 1. Add -p parameter to mkdir command
   {{artifact_path}} could be configured with multiple folders such as build/artifacts
- Fix 2. run() -> runLocally()
   The {{artifact_dir}} is used to keep artifacts archive file.
   It should be called at CI server only and not at target server.
   Then the task `artifact:upload` uploads this file at target server host under {{release_path}}.
   It is not needed to have {{artifact_dir}} at target server.

* Update docs
2023-01-30 21:15:09 +01:00
guvra
30c66cee47
Add an option to build magento artifact from the repository (#3456) 2023-01-30 21:14:51 +01:00
Stephen Ostrow
6b354c2e89
update writable deploy recipe to use release_or_current_path (#3449)
Updating this task to use release_or_current_path (from #2486)  will allow the writable task to be used outside of deployment
2023-01-16 11:04:32 +01:00
Anton Medvedev
a60fd54e8e Fix PostgreSQL provisioning 2023-01-15 18:39:43 +01:00
Anton Medvedev
3d68ee55c7 Fix PostgresDB user creation 2023-01-15 17:35:05 +01:00
Wilfried Wolf
2078514738
Feature/magento2 artifact deployment (#3317)
* adds sticky to writable recipe

chgrp for all files, chmod g+rwxs for directories, chmod g+rw for files

* adds artifact deployment for magento2 recipe

* Updates Documentation

* removes mode that has been submitted in other MR

* adds divers discussion results from PR #3317

- uses contrib/cachetool
- removes task build:prepare-env
- comments additional_shared_files and additonal_shared_dirs
- avoids invoke()

* updates docs

* corrects additional shared

Co-authored-by: Anton Medvedev <anton@medv.io>
2023-01-08 21:46:15 +01:00
Torben Höhn
492cd97945
add pub/static/_cache as shared_dir (#3343) 2023-01-08 21:35:48 +01:00
Vladimir Varlamov
881f853a07
Laravel recipe: Add horizon publish command (#3425)
One of base command to publish your application with Horizon
```
$ php artisan horizon:publish
Copied Directory [/vendor/laravel/horizon/public] To [/public/vendor/horizon]
Publishing complete.
```
2023-01-07 23:43:14 +01:00
Giorgio Pogliani
e3262b3114
Add CraftCMS recipe (#3405)
* Create craftcms.php

* Update descriptions
2022-12-15 16:59:25 +01:00
Thomas Navarro
60e5e35a44
Adding --yes flag to Caddy gpg command (#3407)
Adding --yes flag to Caddy gpg command
2022-12-15 16:06:57 +01:00
Julián Garcés Rodríguez
bc708bec86
Added the laravel default folder storage/framework/cache to writable folders array (#3302)
* added storage/framework/cache/data as writable folder

* regenerate docs
2022-10-27 09:36:02 +02:00
Gerard Forcada
d5241acf02
Laravel recipe: Skip database tasks if .env is missing (#3359) 2022-10-26 14:28:01 +02:00
Rafael Neris
a3575a16fa
Fix: #3319 - Receiving variables db_user and db_name (#3351) 2022-10-17 09:06:37 +02:00
Anton Medvedev
9fa0d8f4a3
Remove default value for previous_release
Fixes #3318
2022-10-04 21:25:50 +02:00
Colin O'Dell
d3156ff60d
Escape metainfo to prevent bash syntax errors (#3328) 2022-10-02 21:36:34 +02:00
Dr. Ulrich Thomas Gabor
eaf30607f0
Removed temporary workaround as it is for a version which is a year old (#3325) 2022-09-30 13:28:18 +02:00
Wilfried Wolf
6d759ef372
Feature/additional writable modes (#3316)
* adds sticky and skip mode

Sticky means, that the command-line-user and the http-user are different but share the same group. This mode add a sticky bit to directories and adds writeable for group to all files.
Skip just skips this in case the interactiv user and the http user are equal

* adds comments to file

* updates documentation
2022-09-22 22:45:48 +02:00
Anton Medvedev
7783299378 Only delete symlink on broken release
This is safe to do as we keep track of successful releases.
2022-09-10 09:34:55 +02:00
Anton Medvedev
377970ef24 Improve error message: show next free release 2022-09-10 09:18:22 +02:00
Anton Medvedev
ed626d4b19 Add exception to accessing previous_release outside of release. 2022-09-10 09:10:09 +02:00
Michał Giza
6981405647
Magento2: add var/page_cache as writable_dirs (#3202)
* var/page_cache as writable_dirs

It will fix following Zend exception after successful deployment:
Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/path/to/www/releases/7/var/page_cache" is not writable in /path/to/www/releases/7/vendor/magento/zendframework1/library/Zend/Cache.php:209
This exception does not occur on every environment, it depends on PHP pool user/group (default www-data or owner of project directory).

* docgen
2022-08-28 18:49:05 +02:00
Rigel Kent Carbonel
f51f0e3c03
Add octane tasks in laravel recipe (#3076)
* Add octane tasks in laravel recipe

* Update docs
2022-08-28 18:47:35 +02:00
kishan nath
497054ddc1
changed python to python-is-python3 in package list (#3233) 2022-08-28 18:45:45 +02:00
Michał Giza
6ca236a706
Fix Caddy install (#3274) 2022-08-28 18:38:37 +02:00
Michał Giza
b92b1c6dd3
Pimcore recipe fixes (#3212)
* Share Pimcore database configuration

* writeable var/cache/dev
2022-07-23 15:45:59 +02:00
ameotoko
b6fd811edb
fix definition of {{bin/php}} parameter in Contao recipe (#3200) 2022-07-16 19:15:31 +02:00
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
Victor van Herpt Valdivia
764d3cd0b8
Add curly braces to domain in Caddyfile (#3115)
* Add curly braces to domain in Caddyfile

Adding curly braces after the domain name, allows for multiple deploys in the same server.

* regenerate doc for docs/recipe/provision/website.md

Co-authored-by: Victor van Herpt Valdivia <victor@vhvLaptop.lan>
2022-04-27 22:03:08 +02:00
Peter Jaap Blaakmeer
297e57dc3c
Remove .maintenance.flag from shared_files
Since shared files are created when they don't exist and this puts the shop in maintenance mode on each deploy, see https://github.com/deployphp/deployer/discussions/2940
2022-03-28 14:57:06 +02:00
Kamil Kuzminski
0e2f726192
Add --with-deletes flag to contao:migrate task (#3072)
* Add --with-deletes flag to contao:migrate task

* Restore the recipe command but add the docs instead

* Auto-generate the docs
2022-03-28 11:52:00 +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
Tom Scott-Malden
8a41b3f030
DD#0000: feat: Added configurable themes to Magento2 (#3047)
* DD#0000: feat: Added configurable themes to Magento2

* DD#0000: feat: Added concurrent jobs to static:content:deploy
2022-03-22 15:10:25 +01:00
Anton Medvedev
67686e176f Add postgress db provisioning 2022-03-20 13:07:14 +01:00
Anton Medvedev
208bf652fe Fix sub_directory update code strategy 2022-03-17 20:07:19 +01:00
chrisan
1d2da8cada
Add artisan event:cache to Laravel deployment task (#3035)
This does not appear to harm Laravel apps with event discovery disabled but will speed up applications that do use it
2022-03-13 21:07:56 +01:00
Anton Medvedev
cab76aee6b Limit release_log to 300 2022-03-13 00:45:30 +01:00
Anton Medvedev
0fac14952a Append Caddyfile instead of overriding it 2022-03-12 21:38:39 +01:00
Peter Jaap Blaakmeer
12f0c41405
Remove absolute file paths from theme-config using the deploy_path (#2801)
* Remove absolute file paths from theme-config using the deploy_path

* Updated docs

* Update regex

* Fix regex

* Update shopware.php

Updated regex to allow release names with alphanumeric characters

Co-authored-by: Anton Medvedev <anton@medv.io>
2022-03-12 17:42:08 +01:00
Sergei Sergeev
6351797093
Site-enabled folder for Caddy configs (#2949)
* Site-enabled folder for Caddy configs

* Caddyfile from project path

* Remove debug code

* always reload caddy

* fix a doc
2022-03-12 17:41:26 +01:00
Anton Medvedev
4ec52d645e
Update info.php 2022-03-03 22:20:50 +01:00