# |
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 |
# |
Jan 7th 2020, 20:08 |
jslamka5685 |
Also, are you FK storing the original PK value or does it store the hashed id? |
# |
Jan 7th 2020, 20:06 |
jslamka5685 |
do you feel the hashid is adding overhead to page loads? |
# |
Jan 7th 2020, 20:06 |
jslamka5685 |
I imagine UUID being a much longer string has to take more time |
# |
Jan 7th 2020, 20:06 |
ricksaccous |
I think there might be an option to though? |
# |
Jan 7th 2020, 20:06 |
ricksaccous |
and no you don't store the hash_id in the db |
# |
Jan 7th 2020, 20:06 |
ricksaccous |
i'm not sure how it compares speed-wise to uuid |
# |
Jan 7th 2020, 20:06 |
jslamka5685 |
Do you store the hash_id in the DB? |
# |
Jan 7th 2020, 20:05 |
ricksaccous |
before i had to deal* |
# |
Jan 7th 2020, 20:05 |
ricksaccous |
i used it because i was facing a limit of 16 characters for a reference and wanted millions more possible records in before i deal with the limitation |
# |
Jan 7th 2020, 20:04 |
jslamka5685 |
I was planning to use UUID but after reading, it seems the overhead on queries once the DB grows is a huge downside of UUID. I was thinking of switching the PK over INT(11) and then using the cakephp-hashid as well |
# |
Jan 7th 2020, 20:03 |
ricksaccous |
yeah i do |
# |
Jan 7th 2020, 20:02 |
jslamka5685 |
Anyone have experience using the cakephp-hashid plugin? |
# |
Jan 7th 2020, 19:48 |
admad |
x) |
# |
Jan 7th 2020, 19:41 |
ndm |
@admad It's *Eichhörnchen*, but quite obviously, that Hörnchen right there is pretty gangster! |
# |
Jan 7th 2020, 19:39 |
challgren |
Could MR plugin write a plugin to check the composer file? |
# |
Jan 7th 2020, 19:39 |
challgren |
Bah!! |
# |
Jan 7th 2020, 19:38 |
admad |
@challgren so make a PR. I ain't going go about checking every package listed there to see if they made a cake 4 compatible release :) |