-
Notifications
You must be signed in to change notification settings - Fork 220
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
Allow to place and n98-magerun2.phar directly in a Magento installation without --root-dir
option
#1305
Comments
@kanevbg Can you check if the |
|
@Could it be that your current working directory is not in the shop project? |
Yes, it is. The suggested CLI option solves the main issue, but please consider it work around, as it's causing bad UX. It will help me and thank you for being active on the issue. Here is the output:
I marked as bold the message above, which is likely a second issue with the concrete work-around. |
@kanevbg that's how it's supposed to work. If you are inside the shop it's finding the shop root. Also you can make the phar file executable and move it to e.g. /usr/local/bin/n98-magerun2.phar (depending on the $PATH variable). |
Would not you like to work like bin/magento? |
@kanevbg n98-magerun2 can execute |
I mean that if for
than it will be practical for us to have the same capability for |
@kanevbg I created a small video which demonstrates the idea behind the tool. |
I see your point being that it's a global install, but that's not required, right? |
OK. I understand your point here. Line 53 in 7b0e718
I have to check if that can conflict. |
--root-dir
option
@kanevbg I did some experiments and created a PR as draft. You can download the phar file (inside the zip) with the changed logic if you want to test: https://nightly.link/netz98/n98-magerun2/actions/artifacts/952569521.zip |
@cmuench sorry for the late response. I confirmed that the build you provided works as expected. |
@kanevbg we will deploy that with the upcoming 7.3.0 release. |
Magento version: 2.4.6
magerun version: 7.1.0
Command used:
Exception trace:
related part of env.php:
PS: there is "TODO" comment at src/N98/Util/Console/Helper/DatabaseHelper.php:71, which may be related:
The text was updated successfully, but these errors were encountered: