You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PHP/Composer commands not executed from current directory
#367
I am currently using shinsenter/php:8.4-frankenphp. But since last week build, when I try to run PHP or composer commands from my container instance (composer install or php artisan route:list for example), it runs as if I executed the command from var/www/html.
I've work with your tool for a long time, and I never had this problem. I could simply go to var/www/html/myProjectA, and run all the necessary commands from here.
I found that the problem might be with the new "in-app" utils. In the container, there is a alias for both composer and php (in /user/local/aliases/composer + /user/local/aliases/php).
#!/usr/bin/env sh exec in-app /usr/local/bin/composer "$@"
If I remove the "in-app" part, it works like before, my command are executed from my position.
Is there a config that could fix the command execution problem?
Sorry for the trouble. This bug was reported in issue #364 and fixed in #366 today. The patched Docker images have also been updated. Please pull the latest image and try again.
I also realized .profile won't load if it's not a login shell, so I changed it to .bashrc in #368 and rebuilt the Docker images. Hopefully this temporarily fixes the issue.
Please wait a few hours and try again once the new images are built.
the composer command is working properly! I will try the build later on.
Just for my understanding, the .bashrc remove the aliases? And .profile was suppose to call .bashrc but for some reason it could not do it?
Thank you!
As you said, .profile was supposed to call another utility to load environment variables and fix the PATH for commands like php or composer. But .profile isn't loaded when you open a terminal without using a login shell.
I've fixed this, so you probably don't need to do anything on your side. For now that's all I can do from my phone.
Note: SSH login feature might not work correctly, but it's a rarely used feature and I'll test it later.
Hello.
Yes, it is working :)!
I built the new image, and I don't have to execute anything to get it to work like it did before.
Thank you for the quick replies and fix.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am currently using shinsenter/php:8.4-frankenphp. But since last week build, when I try to run PHP or composer commands from my container instance (composer install or php artisan route:list for example), it runs as if I executed the command from var/www/html.
I've work with your tool for a long time, and I never had this problem. I could simply go to var/www/html/myProjectA, and run all the necessary commands from here.
I found that the problem might be with the new "in-app" utils. In the container, there is a alias for both composer and php (in /user/local/aliases/composer + /user/local/aliases/php).
#!/usr/bin/env shexec in-app /usr/local/bin/composer "$@"If I remove the "in-app" part, it works like before, my command are executed from my position.
Is there a config that could fix the command execution problem?
Here is my docker-compose php section :
And here is my frankenphp_dockerfile :
Thank you!
All reactions