# |
Sep 6th 2019, 11:52 |
development |
How so? |
# |
Sep 6th 2019, 11:51 |
neon1024 |
Wrapping it in PHP seems totally illogical to me |
# |
Sep 6th 2019, 11:51 |
development |
Yup |
# |
Sep 6th 2019, 11:51 |
neon1024 |
You know you can literally run `node <thing>` right? |
# |
Sep 6th 2019, 11:51 |
development |
> I would just access the Node application on the CLI directly That's my whole goal. I will do this through CakePHP. |
# |
Sep 6th 2019, 11:51 |
admad |
howdy |
# |
Sep 6th 2019, 11:50 |
neon1024 |
Hey @admad :wave: |
# |
Sep 6th 2019, 11:50 |
admad |
@jotpe @spriz @ndm one can make their own table locator which doesn't fallback to `ORM\Table` instance :slightly_smiling_face: |
# |
Sep 6th 2019, 11:48 |
neon1024 |
I’m sure there is more to it, but the approach doesn’t seem logical to me |
# |
Sep 6th 2019, 11:48 |
neon1024 |
I would just access the Node application on the CLI directly |
# |
Sep 6th 2019, 11:48 |
neon1024 |
It seems odd to me to run a server-side application such as Node, and then access it through a server-side application like CakePHP, and run it all as an application |
# |
Sep 6th 2019, 11:47 |
neon1024 |
I don’t really understand your use-case either. |
# |
Sep 6th 2019, 11:47 |
neon1024 |
@development I don’t know how to make what you want, sorry. |
# |
Sep 6th 2019, 11:39 |
development |
Any idea where I should create and store this class? |
# |
Sep 6th 2019, 11:33 |
neon1024 |
I’ll stay in my bubble 8) |
# |
Sep 6th 2019, 11:33 |
neon1024 |
No actual tickets titled “Move this to AWS” yet though, so :man-shrugging: |
# |
Sep 6th 2019, 11:33 |
neon1024 |
Most people in my organisation have a hard-on for AWS, so there is lots of talk about putting this on AWS and AWS that and etc |
# |
Sep 6th 2019, 11:32 |
spriz |
:) |
# |
Sep 6th 2019, 11:32 |
spriz |
Then it's all good |
# |
Sep 6th 2019, 11:32 |
neon1024 |
A droplet per application I mean |
# |
Sep 6th 2019, 11:32 |
spriz |
Ah I see :) |
# |
Sep 6th 2019, 11:32 |
neon1024 |
So I don’t tend to worry about distributed services |
# |
Sep 6th 2019, 11:32 |
neon1024 |
My applications run on a single Digital Ocean droplet |
# |
Sep 6th 2019, 11:32 |
spriz |
Ah I see |
# |
Sep 6th 2019, 11:32 |
spriz |
you avoid those troubles with DB sessions :slightly_smiling_face: |
# |
Sep 6th 2019, 11:31 |
neon1024 |
@spriz I’m not too sure how the servers are configured actually. It’s setup using Ansible |
# |
Sep 6th 2019, 11:31 |
spriz |
and if you, you need sticky sessions to avoid troubles with PHP sessions |
# |
Sep 6th 2019, 11:31 |
spriz |
@neon1024 don't you have multiple PHP workers for the same site? :slightly_smiling_face: |
# |
Sep 6th 2019, 11:30 |
development |
In my case it won't be a Node service that is running concurrently with my webserver, instead it will be launched whenever needed, produce results and return. |
# |
Sep 6th 2019, 11:29 |
neon1024 |
@development I use a JSON web service to interface CakePHP 3 and Vue.js |
# |
Sep 6th 2019, 11:28 |
neon1024 |
@spriz I never thought to change it, but I would need to be convinced that storing my sessions in the database wasn’t generating additional load on my application database. Unless perhaps you have a dedicated database for sessions. |
# |
Sep 6th 2019, 11:27 |
development |
I have a Node app that I want to interface with through CakePHP. I would like to create some sort of class that will manage most if not all the communication. In CakePHP3, where should this class be created and can it be extended by a cake class to make it interface with cake better? I expect to use this from the CakeShell but possibly also from a controller. |
# |
Sep 6th 2019, 11:27 |
spriz |
DB ftw |
# |
Sep 6th 2019, 11:27 |
spriz |
I never dared to use php engine though :S |
# |
Sep 6th 2019, 11:26 |
spriz |
anything else stated in php.ini ? :) |
# |
Sep 6th 2019, 10:43 |
neon1024 |
I’d like to extend my session time to 30 minutes, but this configuration doesn’t seem to be working for me. What have I missed? |
# |
Sep 6th 2019, 10:42 |
slackebot |
<neon1024> |
# |
Sep 6th 2019, 10:39 |
spriz |
And with core translations behavior :) I'll live with the auto tables for now it seems! ;P |
# |
Sep 6th 2019, 10:35 |
alexdd55976 |
you shouldn't do it in the controller anyway. `$EmailTable->YourMethodName($params)`... no need to make any querys in the controller. |
# |
Sep 6th 2019, 10:34 |
spriz |
Welp, this also fails if using default Cake DB sessions setup :P |
# |
Sep 6th 2019, 10:31 |
ndm |
I think there have been discussions, but since this "issue" exists forever already and there hasn't been any changes yet, the conclusion was probably to not do that. |