475 Commits

Author SHA1 Message Date
Anton Medvedev
47a193f9af
Add docgen 2020-10-02 01:11:13 +03:00
Sacharski Bartłomiej
514d997c15
[issue-2170] Use on(localhost(), ...) instead of runLocally in check_remote.php (#2175)
Reworked the `deploy:check_remote` step, to use the `on(localhost(), ...)`,
instead of relying on `runLocally`.

This has been changed, to make sure that the all functions that
are being executed and are related to "local" part of the logic,
are ran on the local host.

Previously in `runLocally(sprintf("%s ls-remote $opt $repository $ref", get('bin/git')));`
the `get('bin/git')` would've been executed on the remote host, which
could have resulted in an unexpected behaviour.

By closing all of the instructions, in the closure that is executed
by the `on()` function, we are sure that the context is set to the
right host.
2020-10-01 20:32:51 +03:00
Joel Pittet
44f5f840c3
Laravel Task artisan:migrate should only run once (#2169)
Add once() again command that got dropped from the v7 updated commit.
2020-09-24 15:28:21 +02:00
kicaj
685e7cbd2c
Create cakephp4.php (#2167)
* Create cakephp4.php

* Update cakephp4.php
2020-09-21 14:51:34 +03:00
Peter Jaap Blaakmeer
c19b1dcae1
Add sw:plugin:activate:all and sw:plugin:migrate:all to Shopware 6 recipe (#2159)
Do not update upgradeable plugins, it updates code too. What we actually want is to run the migration. But the database:migrate --all command only runs the migrations for the core. Added a task that runs migrations for all plugins too.

Added || true to not let it fail on non-existing database migrations. This can be removed when this commit is released; 2a8a76fd83
2020-09-10 16:13:52 +02:00
Fabian Blechschmidt
f16e0cbad9
Update shopware6.php (#2158)
* Update shopware6.php

I'm not sure wether this is interesting for your @peterjaap I hacked a script with the horrible table output to install, upgrade and activate all plugins

* Update shopware6.php

made it a static function
2020-09-09 14:32:52 +02:00
Andreas Möller
96c739bd5b
Enhancement: Add deploy:is-unlocked (#2152) 2020-09-03 16:17:52 +03:00
Fabian Blechschmidt
d0c8cc1a79
Update shopware6.php (#2151)
* Update shopware6.php

Microoptimization

* Update shopware6.php

Run build with bash
FIXES   build.sh: 6: Bad substitution
2020-09-03 16:15:56 +03:00
Peter Jaap Blaakmeer
d198de47b7
Updated Shopware 6 recipe to reflect production template (#2143)
Instead of development template
2020-08-31 09:32:00 +02:00
Brad Morrical
1d758b005f
Symfony 5 recipe (#2139) 2020-08-21 09:47:56 +03:00
Peter Jaap Blaakmeer
9735b1f6e5
Updated shared_dirs list, added assets install task for Shopware 6 (#2130) 2020-08-06 14:22:03 +03:00
Peter Jaap Blaakmeer
3f7788f7ad
Updated Shopware 6 recipe (#2129)
* Updated Showpare 6 recipe

* Update shopware6.php
2020-08-06 13:28:39 +03:00
Anton Medvedev
8293eb931e wip 2020-07-26 22:35:08 +03:00
Anton Medvedev
59c87c5885 wip 2020-07-11 01:24:18 +03:00
Anton Medvedev
121915fbe2 wip 2020-07-10 00:36:02 +03:00
Anton Medvedev
7c96116df0 wip 2020-07-08 22:12:12 +03:00
Anton Medvedev
b2ec87ce4d wip 2020-07-07 22:18:14 +03:00
Anton Medvedev
ef2c5ba6c5 wip 2020-07-07 22:16:31 +03:00
Bernhard Prange
eb93392377
Process corrected (#2109)
Corrections made for smoother workflow. Tutorial on how to work with this receipe comming soon!
2020-06-24 21:16:26 +03:00
Bernhard Prange
0d6f45475a
Shopware6 installation routine (#2072)
Due to the lack of ANY shopware6 installation routine, here's my little beginning of it. If you think it can be made better, I am very happy to have your ideas on board of this.
2020-05-29 14:52:24 +03:00
Anton Medvedev
29a643b623 v7 2020-05-16 18:02:17 +03:00
Pierre Grimaud
70cdf1e2bf
Fix typos (#2032) 2020-04-24 15:53:23 +03:00
M. Vugteveen
c948ea3e99
Added support for composer v2 installed.json format + composer.phar fix (#2031)
* fix composer v2 installed.json parsing

* add changelog

* only use bin/php on phar file

* update chagnelog

* Update dep
2020-04-24 15:53:08 +03:00
MoogyG
944f9bd582
Update update_code.php (#1958) 2020-04-20 23:56:31 +03:00
Benedict Zinke
467695bcb9
Fix comment in common recipe (#2022)
As stated in https://github.com/deployphp/deployer/issues/869 the copy_dirs task works relative to release_path rather then deploy_path as indicated by the comment in recipe/common.php
2020-04-20 23:53:24 +03:00
Brad Morrical
58a7d51295
Added recipe for Joomla! (#2024)
* Added recipe for Joomla!

* updating Changelog
2020-04-20 23:53:10 +03:00
David Naber
a20582eb95
Filter output upon stage argument only when defined for host fixes #1909 (#2021) 2020-04-07 18:41:42 +03:00
Beno!t POLASZEK
a8dabf03ee
Keep consistency with deployer executable naming (#2011) 2020-03-06 12:49:07 +03:00
Ralf Baussenwein
613e631544
fix backward compatibility of bin/console for symfony4 recipe (#2005)
* fix backward compatibility of bin/console for symfony4 recipe

* update Changelog
2020-02-19 15:25:38 +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
Kartik Patel
d3a6ea7353 updated for SS4. Checks to see if assets is in root or public/assets as per SS4 new directory structure (#1943) 2019-10-21 08:58:24 +03:00
u_mulder
96c130a13b Update README.md (#1932) 2019-10-08 09:52:11 +03:00
Tomasz Gąsior
f82128686e Update symfony4 recipe (#1923)
Fix wrong change introduced in 62db938884

`.env` file should not be shared because it's release-specific. On the other hand, `.env.local` and `.env.local.php` files are specific to deployment environment and should be shared between releases.

See for details: https://github.com/deployphp/deployer/pull/1907#issuecomment-533779139
2019-09-22 15:06:47 +03:00
Nicolás González
62db938884 Update symfony4.php (#1907)
The .env and .env.<environment> files should be committed to the shared repository because they are the same for all developers and machines. However, the env files ending in .local (.env.local and .env.<environment>.local) should not be committed because only you will use them. In fact, the .gitignore file that comes with Symfony prevents them from being committed.

https://symfony.com/doc/current/configuration.html#managing-multiple-env-files
2019-08-16 13:58:53 +03:00
Anton Medvedev
85aae9fd68 Add deploy:check_remote task 2019-08-12 21:01:32 +03:00
Kyle Tucker
6180366acf Update config:hosts and config:current task recipes (#1901)
* Update config:hosts and config:current task recipes

* Update changelog

* Fix variable refs
2019-08-09 22:16:00 +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
Wim Griffioen
a6ff2eb4c6 Add tasks to cache a manifest of event listeners (#1893)
* Add tasks to cache a manifest of event listeners

Laravel supports automatic discovery of events and listeners since
version 5.8.9. (https://laravel.com/docs/5.8/events#event-discovery)
As the documentation states, you want to cache the manifest of event
listeners in a production environment to prevent scanning the
directories on every request.

The new tasks are not added to the deploy task because automatic event
discovery is opt-in functionality in Laravel.

* Update CHANGELOG.md
2019-08-06 21:55:32 +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
Matthew Muscat
9dcd4eeab1 Update Laravel View Cache commands (#1889)
* Update artisan cache commands

- Re-add `artisan:view:clear` command 
- Modify the existing `artisan:view:cache` command to remove the call to clear the cache, as this is already completed by the Laravel Framework

* Updated changelog with laravel view cache changes

* Update CHANGELOG.md

Update newline spacing to fix scrutinizer failure
2019-07-30 10:39:03 +03:00
Benjamin Porquet
d16d5df504 Update symfony4.php (#1881)
On SF 4.2+, the .env file is versionned, only the .env.local is not versionned anymore
2019-07-10 18:05:10 +03:00
Antoine Kociuba
727d7ee7f1 [HOTFIX] - magento2 recipe - Properly handle 'generated' and not 'generation' directory for >= 2.2.x Magento versions (#1879) 2019-07-06 00:27:27 +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
Alex Plekhanov
0fc524ee58 Laravel view cache task (#1860)
* Substituted laravel view:clear command with view:cache command

* Added version check to view:cache task

* Updated Changelog
2019-06-11 13:16:23 +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
Rafael Corrêa Gomes
681eedcdcb Recipe Magento 2 > Change the shared folders (#1848)
* Recipe Magento 2 > Change the shared folders

* Update magento2.php
2019-05-26 14:30:18 +07:00