Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento: allow subdirectory and create variable for bin/magento #3460

Merged
merged 11 commits into from
Feb 9, 2023

Conversation

schmengler
Copy link
Contributor

@schmengler schmengler commented Jan 25, 2023

so it can be overridden to a custom location

  • Bug fix #…?

  • New feature?

  • BC breaks?

  • Tests added?

  • Docs added?

    Please, regenerate docs by running next command:
    $ php bin/docgen
    

so it can be overridden to a custom location
@peterjaap
Copy link
Contributor

In what situation would bin/magento be in a custom path?

@schmengler
Copy link
Contributor Author

In combination with #3461

maybe I should combine this into one PR @peterjaap

@Schrank
Copy link
Contributor

Schrank commented Jan 25, 2023

Ah, here it is :D

@Schrank
Copy link
Contributor

Schrank commented Jan 25, 2023

In combination with #3461

maybe I should combine this into one PR @peterjaap

I'm fine having two and merge them together :-)

@schmengler schmengler mentioned this pull request Jan 26, 2023
5 tasks
set('magento_version', function () {
// detect version
$versionOutput = run('{{bin/php}} {{release_or_current_path}}/bin/magento --version');
$versionOutput = run('{{bin/php}} {{release_or_current_path}}/{{bin/magento}} --version');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the {{release_or_current_path}} already added to {{bin/magento}} on line 78?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, looks like I messed that up when resolving conflicts. I'll fix it

@schmengler
Copy link
Contributor Author

@peterjaap I combined this with PR #3461, please have a look again

@schmengler schmengler changed the title Magento: create variable for bin/magento Magento: allow subdirectory and create variable for bin/magento Feb 8, 2023
@antonmedv antonmedv requested a review from peterjaap February 8, 2023 15:43
Copy link
Contributor

@peterjaap peterjaap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! @antonmedv merge at will

@antonmedv antonmedv merged commit 762a177 into deployphp:master Feb 9, 2023
midweste pushed a commit to midweste/deployer that referenced this pull request Mar 7, 2023
* origin/master: (23 commits)
  Magento 2: Only set maintenance mode once if needed (deployphp#3469)
  Adds Comments to magento2 recipe and modifies DocGen, to be able to explain artifact deployment (deployphp#3510)
  Added missing deploy task to recipe/common (deployphp#3526)
  Added support for ntfy.sh notifications, contrib/ntfy (deployphp#3522)
  Teams, Telegram, Slack contrib recipe no longer fails silently if no webhook is configured (deployphp#3523)
  [automatic] Update docs with bin/docgen
  Contrib supervisord monitor (deployphp#3486)
  Doc update about new default value of writable_recursive (deployphp#3521)
  Added a note about missing ssh-option. Fixes issue deployphp/deployer… (deployphp#3520)
  Fix branch deploy for clone strategy
  Shopware Flex has no `build.sh` anymore (deployphp#3513)
  Fixed bin/console calls in shopware recipe (deployphp#3512)
  fix typo in magento recipe (deployphp#3498)
  Add PUT to Httpie.php (deployphp#3497)
  Add remote option to update_code_strategy to rename remote to repository (deployphp#3466)
  Prevent type errors when supplied timeout options are not numeric (deployphp#3484)
  Magento: allow subdirectory and create variable for bin/magento (deployphp#3460)
  docs(github-action): improve & update (deployphp#3482)
  docs(selector): correct env config option to array (deployphp#3481)
  Fixes deployphp#3472 (deployphp#3473)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants