# |
Aug 15th 2019, 03:40 |
zomb |
quick question, is there a method for join/implode on the `Cake\Collection\Collection` |
# |
Aug 15th 2019, 00:35 |
challgren |
@pedroseco https://github.com/pronique/multitenant was a good plugin, it hasnt been updated in a while but I used it as a starting point |
# |
Aug 14th 2019, 23:31 |
pedroseco |
Hi guys. Im starting to build a SaaS using cakephp as the backend, but i’m a litlle lost on how to configure a multi-tenant app taking into account a different subdomain for each user |
# |
Aug 14th 2019, 20:05 |
ker |
Hi, someone try upload multiple image with proffer plugin? I follow the docs but doesn't work. So I have a table of products and another productsphotos and I want add multiple images when I add a new product. |
# |
Aug 14th 2019, 19:48 |
jh |
I am also using expose and ports keys |
# |
Aug 14th 2019, 19:48 |
jh |
command is --port in docker compose to get the port mapping going |
# |
Aug 14th 2019, 19:36 |
jh |
for debugging purposes of cake mail? |
# |
Aug 14th 2019, 19:31 |
shoe |
Sorry no :slightly_smiling_face: I use Mandrill or Postmarkapp for relaying mail… so much nicer. |
# |
Aug 14th 2019, 19:28 |
jh |
the mailhog config above should work but without smtp it makes no sense |
# |
Aug 14th 2019, 19:28 |
jh |
do you happen to have a working smtp server config for docker compose ;)? |
# |
Aug 14th 2019, 19:27 |
jh |
https://gist.github.com/inoas/8f6678e4bbe0a7eb949a7cd318dd0487 works now |
# |
Aug 14th 2019, 19:27 |
jh |
well i want custom ports so docker and redis have to know about it |
# |
Aug 14th 2019, 19:27 |
shoe |
Is it necessary in your docker-compose? Can’t you just specify it in the port section of your app.php config? |
# |
Aug 14th 2019, 19:26 |
jh |
aka specifying -p |
# |
Aug 14th 2019, 19:26 |
jh |
no idea why |
# |
Aug 14th 2019, 19:26 |
jh |
yeah I have been switching that around... but that just doesnt work |
# |
Aug 14th 2019, 19:25 |
jh |
which resulted in 2019-08-14T19:21:37.905705399Z 1:C 14 Aug 2019 19:21:37.905 # Fatal error, can't open config file '-p 6379' |
# |
Aug 14th 2019, 19:25 |
shoe |
Your error is that it’s trying to open port 6379, not 16379 like your docker-compose file exposes. |
# |
Aug 14th 2019, 19:25 |
jh |
shoe that was it I had command: -p 6379 in docker compose |
# |
Aug 14th 2019, 19:23 |
shoe |
https://gist.github.com/shoesole/b30b2e764d32e7082c5b19bfc52024d4 |
# |
Aug 14th 2019, 19:23 |
shoe |
Mine is fairly basic, I’ve got some setup happening in specific Docker files |
# |
Aug 14th 2019, 19:22 |
jh |
# Fatal error, can't open config file '-p 6379' okok |
# |
Aug 14th 2019, 19:18 |
jh |
@shoe can you share yours |
# |
Aug 14th 2019, 19:14 |
jh |
that's my docker compose file |
# |
Aug 14th 2019, 19:13 |
jh |
shoe https://gist.github.com/inoas/8f6678e4bbe0a7eb949a7cd318dd0487 |
# |
Aug 14th 2019, 19:12 |
rightscoreanalysis |
since upgrading to the latest 3.6.x version of cake my json routes no longer work |
# |
Aug 14th 2019, 19:11 |
jh |
can you show the docker compose snip |
# |
Aug 14th 2019, 19:11 |
jh |
redis is there now |
# |
Aug 14th 2019, 19:07 |
shoe |
I’ve been through that plenty of times! |
# |
Aug 14th 2019, 19:07 |
shoe |
:slightly_smiling_face: |
# |
Aug 14th 2019, 19:07 |
shoe |
I am using docker compose. redis is set as the host name there |
# |
Aug 14th 2019, 19:06 |
jh |
hm I may be just lacking php redis laughing out loud brb |
# |
Aug 14th 2019, 19:05 |
jh |
so no docker compose just one phat image? |
# |
Aug 14th 2019, 19:04 |
shoe |
Let me see if I have another one with that setup. |
# |
Aug 14th 2019, 19:04 |
shoe |
Nope didn’t map those ports (since it’s all internal to Docker in my case… No UN/PW on this setup. |
# |
Aug 14th 2019, 19:03 |
jh |
do you use username/password? |
# |
Aug 14th 2019, 19:03 |
jh |
and you didnt map any ports |
# |
Aug 14th 2019, 19:03 |
shoe |
In Docker, my redis host is called “redis” |
# |
Aug 14th 2019, 19:02 |
slackebot |
‘prefix’ => ‘mg_redis_long_‘, ‘host’ => ‘redis’, ‘port’ => 6379, ‘fallback’ => ‘file_long’, ], |
# |
Aug 14th 2019, 19:02 |
slackebot |
‘host’ => ‘redis’, ‘port’ => 6379, ‘fallback’ => ‘file_short’, ], ‘short’ => [ ‘className’ => ‘Redis’, ‘duration’ => ‘+10 minutes’, ‘prefix’ => ‘mg_redis_short_‘, ‘host’ => ‘redis’, ‘port’ => 6379, ‘fallback’ => ‘file_short’, ], ‘long’ => [ |
# |
Aug 14th 2019, 19:02 |
shoe |
‘Cache’ => [ ‘default’ => [ ‘className’ => ‘Redis’, ‘duration’ => ‘+1 hours’, ‘prefix’ => ‘mg_redis_‘, ‘host’ => ‘redis’, ‘port’ => 6379, ‘groups’ => [‘orders’, ‘events’’], ‘fallback’ => ‘file’, ], ‘very_short’ => [ ‘className’ => ‘Redis’, |