# |
Jan 8th 2020, 00:13 |
MrEm |
I did some outputting inside the method where the exception is being thrown, and it's only looking in the plugins directory. Is there some kind of configuration I need to set up? |
# |
Jan 8th 2020, 00:08 |
MrEm |
(didn't mean to double post - was trying to edit) |
# |
Jan 8th 2020, 00:07 |
MrEm |
Pastebin ok? https://pastebin.com/tWhziAaB |
# |
Jan 8th 2020, 00:07 |
MrEm |
Pastbin ok? https://pastebin.com/tWhziAaB |
# |
Jan 8th 2020, 00:05 |
MrEm |
Sure 1s |
# |
Jan 8th 2020, 00:05 |
savant |
can you post your composer.json in github? |
# |
Jan 8th 2020, 00:04 |
savant |
it should be in the `vendor` folder |
# |
Jan 8th 2020, 00:04 |
MrEm |
Any help would be awesome! |
# |
Jan 7th 2020, 23:58 |
MrEm |
Same error for both |
# |
Jan 7th 2020, 23:58 |
MrEm |
The command I'm trying to execute is one of two: "php bin/cake.php plugin load migrations" or "php bin/cake.php bake migration_snapshot Initial" |
# |
Jan 7th 2020, 23:57 |
MrEm |
Exception: Plugin migrations could not be found.In [/home/ubuntu/git/vendor/cakephp/cakephp/src/Core/PluginCollection.php, line 143] |
# |
Jan 7th 2020, 23:57 |
MrEm |
I'm trying to load the migrations plugin in CakePHP 4. I've used the following command: "php composer.phar require cakephp/migrations:3.0.0-beta2" - this loads the package into the vendor directory but not into the plugins directory, so when I try to use it, I get an error: |
# |
Jan 7th 2020, 22:34 |
jtraulle |
php must be installed into your container (and not the host machine) |
# |
Jan 7th 2020, 22:34 |
jtraulle |
the ec (elastic compute) mention in the return of which command suggest that you're connected on ssh on the vm host machine that runs your container |
# |
Jan 7th 2020, 22:32 |
jtraulle |
hey, what returns a `docker ps` ? |
# |
Jan 7th 2020, 22:29 |
kailas |
the weird thing is i can’t find a php executable at all |
# |
Jan 7th 2020, 22:28 |
kailas |
well, that’s what it seems to suggest, but this environment is definitely NOT the same as the environment when i run docker on my development machine |
# |
Jan 7th 2020, 22:28 |
savant |
maybe you had to specify a path to php to run your app |
# |
Jan 7th 2020, 22:28 |
savant |
oh does elastic beanstalk run a docker container? |
# |
Jan 7th 2020, 22:27 |
kailas |
yeah, i think this is a beanstalk thing |
# |
Jan 7th 2020, 22:27 |
kailas |
my app runs, so clearly php is installed somewhere |
# |
Jan 7th 2020, 22:27 |
savant |
ive never used elastic beanstalk |
# |
Jan 7th 2020, 22:27 |
kailas |
```$ which php /usr/bin/which: no php in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin)``` |
# |
Jan 7th 2020, 22:27 |
kailas |
dont’ have any EB experience. a similar command would work in my docker environment |
# |
Jan 7th 2020, 22:27 |
savant |
what is the output of `which php` |
# |
Jan 7th 2020, 22:26 |
kailas |
```$ bin/cake users addSuperUser Failed to find a CLI version of PHP; falling back to system standard php executable bin/cake: line 72: exec: php: not found``` |
# |
Jan 7th 2020, 22:23 |
savant |
what is the exact error message? |
# |
Jan 7th 2020, 22:20 |
kailas |
i’ve deployed a cakephp app that i had running in a docker image to eb using the cli. it’s up and running and seems to work. however, when i ssh to the instance and try to run the shell commands, it doesn’t work. anyone have experience with this? says that the CLI version of php isn’t available. i think this is a EB thing as in my docker environment, i’m able to run the php cli (and hence, shell functions) |
# |
Jan 7th 2020, 20:47 |
admad |
beta is totally fine |
# |
Jan 7th 2020, 20:28 |
challgren |
@admad you only want stable releases for 4 or beta ok for fox/awesome? |
# |
Jan 7th 2020, 20:15 |
ricksaccous |
when it comes to displaying the pk |
# |
Jan 7th 2020, 20:14 |
ricksaccous |
but of course it will stop all the automagic from working |
# |
Jan 7th 2020, 20:14 |
ricksaccous |
that would prob alleviate your problem |
# |
Jan 7th 2020, 20:14 |
ricksaccous |
I think in your options you can set an alternative field to have the hashid rather than the id field itself |
# |
Jan 7th 2020, 20:13 |
jslamka5685 |
When I am trying to add a FK condition on a pagination query, the associated keys are being returned as hashids. This is causing an issue as the FK field is int but the hashids are not int |
# |
Jan 7th 2020, 20:12 |
jslamka5685 |
I figured they should be only be for display/hiding internal IDs |
# |
Jan 7th 2020, 20:10 |
ricksaccous |
i didn't really bother to benchmark it |
# |
Jan 7th 2020, 20:10 |
ricksaccous |
so they are only hit in an api request rather than a page load and my test data is so small i'm not sure |
# |
Jan 7th 2020, 20:09 |
ricksaccous |
i use them as an alternative identifier |
# |
Jan 7th 2020, 20:09 |
ricksaccous |
i don't use them in the traditional sense |
# |
Jan 7th 2020, 20:09 |
admad |
hashids shouldn't be used for anything expect URLs / display purpose |