# |
Oct 7th 2016, 14:01 |
spriz |
Iâ??d guess your php runs as www-data, apache, nginx or something alike |
# |
Oct 7th 2016, 14:01 |
spriz |
owned by root :slightly_smiling_face: |
# |
Oct 7th 2016, 14:00 |
maikh |
```-rwxr-xr-x 1 root admin 47M 20 Jan 2016 wkhtmltopdf``` |
# |
Oct 7th 2016, 14:00 |
maikh |
oh sorry... |
# |
Oct 7th 2016, 14:00 |
spriz |
bu thatâ??s `wkhtmltoimage` not `wkhtmltopdf` |
# |
Oct 7th 2016, 14:00 |
maikh |
```-rwxr-xr-x 1 root admin 47M 20 Jan 2016 wkhtmltoimage``` |
# |
Oct 7th 2016, 14:00 |
spriz |
>"not executable:â? @maikh |
# |
Oct 7th 2016, 13:59 |
spriz |
then maybe itâ??s 2nd part of the error message ); |
# |
Oct 7th 2016, 13:59 |
maikh |
but in /usr/local/bin/ there is this wkhtmltopdf |
# |
Oct 7th 2016, 13:59 |
maikh |
i want to create pdfs as email-attachements. but allways get the error ```wkhtmltopdf binary is not found or not executable: /usr/local/bin/wkhtmltopdf``` |
# |
Oct 7th 2016, 13:57 |
maikh |
is anybody using this plugin: CakePdf ? |
# |
Oct 7th 2016, 13:47 |
spriz |
#rubberduck |
# |
Oct 7th 2016, 13:47 |
spriz |
oh lol, now I can see that itâ??s pretty obvious that itâ??s grabbing the tasks where â??notbeforeâ? is not null :slightly_smiling_face: |
# |
Oct 7th 2016, 13:45 |
spriz |
I donâ??t understand why some of those tasks are (more or less) suddenly grabbed by a worker - instead of grabbing the oldest one first :P |
# |
Oct 7th 2016, 13:45 |
spriz |
also right now, we have ~5500 non-completed tasks in the queue, and then this is the most recent ones: https://cl.ly/hheA/Screen%20Shot%202016-10-07%20at%2015.43.07.png |
# |
Oct 7th 2016, 13:43 |
spriz |
last 12 hours we average out on 1500ms for the SELECT |
# |
Oct 7th 2016, 13:38 |
dereuromark |
dunno, but pretty fast I imagine |
# |
Oct 7th 2016, 13:37 |
spriz |
And also, could I ask you how many ms each of the SELECT to see if thereâ??s any pending jobs takes for you? :slightly_smiling_face: |
# |
Oct 7th 2016, 13:36 |
spriz |
Iâ??m pretty sure weâ??ve previously had multiple workers picking tasks with your cakephp-queue plugin in between, but now we seem only to have 1 worker running at a time - is that something youâ??ve heard before? Or does it sound like non-sense? |
# |
Oct 7th 2016, 13:35 |
spriz |
@dereuromark you around? :slightly_smiling_face: |
# |
Oct 7th 2016, 13:20 |
spriz |
robodna: Nested resources route doesnâ??t have to be in different namespaces! :slightly_smiling_face: |
# |
Oct 7th 2016, 13:14 |
robodna |
Ok, I guess my question was too stupid! thanks anyways cakephp community! |
# |
Oct 7th 2016, 13:02 |
robodna |
does anyone know, or should I ask this in the other chat? |
# |
Oct 7th 2016, 12:50 |
westy |
it would be awesome if the migration_snapshot could be updated to include data so it auto generates the inserts along side the table creation |
# |
Oct 7th 2016, 12:49 |
westy |
ahh ok yes sorry just seen it is listed in the docs ok thatnks I'll add it in there |
# |
Oct 7th 2016, 12:47 |
dereuromark |
westy: custom sql is possible with $this->query($sql); A better approach, e.g. for a default admin account, is: ```php $data = [ [ 'username' => 'admin', 'email' => 'admin@example.com>', 'password' => '$2y$10$0NhsZCkmXa2tH11r5dBsF.e6d34MUt/z10JLfVDAivcuNoBJhopVq' ] ]; $table = $this->table('users'); $table->insert($data)-save(); ``` |
# |
Oct 7th 2016, 12:46 |
robodna |
When I create a 'nested resource route', the docs say to map the â??Commentsâ?? resource to the App\Controller\Articles\CommentsController... so do I create a src/Controller/Articles/CommentsController.php file? Also, what namespace do I include in this file.. namepsace App\Controller\Articles? |
# |
Oct 7th 2016, 12:41 |
pat |
ah I see it is not cake specific |
# |
Oct 7th 2016, 12:41 |
westy |
@dereuromark do I just add the data to the table in the up() function or do I call the seed class? |
# |
Oct 7th 2016, 12:34 |
pat |
I see, thank you. did I miss it in the docs or is it missing? |
# |
Oct 7th 2016, 12:33 |
dereuromark |
dont use the deprecated version, use getMockBuilder |
# |
Oct 7th 2016, 12:29 |
pat |
@dereuromark is it done with $this->getMock("path to component")? |
# |
Oct 7th 2016, 12:28 |
dereuromark |
westy: you can add basic seed data to migrations, yes |
# |
Oct 7th 2016, 12:28 |
dereuromark |
I tend to mock trump a lot these days |
# |
Oct 7th 2016, 12:27 |
dereuromark |
you can mock everything of course |
# |
Oct 7th 2016, 12:25 |
pat |
Gents, how can I mock components in CakePHP 3? is this possible? |
# |
Oct 7th 2016, 12:23 |
admad |
You can using the new FlashComponent |
# |
Oct 7th 2016, 12:22 |
tokam |
can I set two flash Messages? |
# |
Oct 7th 2016, 12:22 |
tokam |
$this->Session->setFlash( |
# |
Oct 7th 2016, 12:05 |
westy |
Can you run a seed from a Migration class file? |
# |
Oct 7th 2016, 12:04 |
westy |
I'm interested in how to deploy with data being added as well as the table structure, I have several tables that have pre-filled data |