# |
Mar 28th 2019, 15:04 |
ricksaccous |
hmmmm |
# |
Mar 28th 2019, 15:04 |
ricksaccous |
i'm sure there's a way to get 'OR' => [Query->matching(), Query->matching()] but not sure how to go about it |
# |
Mar 28th 2019, 15:01 |
neon1024 |
I should open a ticket for myself to re-investigate |
# |
Mar 28th 2019, 15:01 |
neon1024 |
Never got around to building it out properly as we had different production architecture at the time, but we’ve changed since, so might be worth re-visiting |
# |
Mar 28th 2019, 15:01 |
neon1024 |
Nice as you can create lots of different tasks too, like if you wanted to run Rector to upgrade |
# |
Mar 28th 2019, 15:00 |
neon1024 |
https://deployer.org/ |
# |
Mar 28th 2019, 15:00 |
neon1024 |
..and er, PHP Deployer or something it’s called |
# |
Mar 28th 2019, 15:00 |
neon1024 |
I’ve been looking at Rocketeer |
# |
Mar 28th 2019, 15:00 |
neon1024 |
We still use Git here |
# |
Mar 28th 2019, 14:59 |
neon1024 |
`apt install my-website` |
# |
Mar 28th 2019, 14:59 |
neon1024 |
Not all deployments tools are big! ;) |
# |
Mar 28th 2019, 14:59 |
isaiah |
ok so should i delete and upload the normal way? |
# |
Mar 28th 2019, 14:58 |
cnizzardini |
Not everyone needs a big deployment tool, mine does what derueromarks link does, the difference is all my bash commands happen in .git/hooks/post-merge but im also lazy |
# |
Mar 28th 2019, 14:57 |
cnizzardini |
Its a step up over FTP deployments |
# |
Mar 28th 2019, 14:57 |
dereuromark |
focus on the www-data part of proper deploy management :slightly_smiling_face: |
# |
Mar 28th 2019, 14:57 |
isaiah |
I have changed the lib folder permission to 0777 |
# |
Mar 28th 2019, 14:57 |
neon1024 |
Not as a deploy tool! |
# |
Mar 28th 2019, 14:57 |
cnizzardini |
You should really use git |
# |
Mar 28th 2019, 14:56 |
neon1024 |
That sounds like a reason |
# |
Mar 28th 2019, 14:56 |
isaiah |
I backed it up from my previous server to the current server using ftp |
# |
Mar 28th 2019, 14:55 |
dereuromark |
https://sandbox.dereuromark.de/pages/best-practices#deployment ^^ |
# |
Mar 28th 2019, 14:55 |
isaiah |
2x |
# |
Mar 28th 2019, 14:55 |
dereuromark |
classic permissions error from bad deploy probably? upload already sounds like the route cause of all your issues |
# |
Mar 28th 2019, 14:53 |
neon1024 |
Looks like a hardcoded path, which would be why it’s looking for an error handler in a different users folder I’d imagine, as that would certainly cause a permissions error |
# |
Mar 28th 2019, 14:52 |
neon1024 |
2 |
# |
Mar 28th 2019, 14:50 |
cnizzardini |
What version of cake is that? |
# |
Mar 28th 2019, 14:50 |
cnizzardini |
Well those look like permission errors |
# |
Mar 28th 2019, 14:49 |
isaiah |
PHP Fatal error: Class 'ErrorHandler' not found in /home/studycliq/public_html/lib/Cake/Core/App.php on line 957 mmap cache can't open /home/payvalue/public_html/lib/Cake/Error/ErrorHandler.php - Permission denied (pid 18797) mmap cache can't open /home/payvalue/public_html/lib/Cake/Error/ErrorHandler.php - Permission denied (pid 18797) mmap cache can't open /home/payvalue/public_html/lib/Cake/Configure/PhpReader.php - Permission den |
# |
Mar 28th 2019, 14:49 |
isaiah |
I uploaded my site content and i am having this error |
# |
Mar 28th 2019, 14:48 |
isaiah |
hello |
# |
Mar 28th 2019, 14:39 |
dereuromark |
yeah those are using the old way |
# |
Mar 28th 2019, 14:39 |
cnizzardini |
but withDownload will return new instance |
# |
Mar 28th 2019, 14:38 |
cnizzardini |
Okay I see, because before i was just using download |
# |
Mar 28th 2019, 14:38 |
dereuromark |
3.5+ or so |
# |
Mar 28th 2019, 14:37 |
cnizzardini |
strange, has it always been immutable? |
# |
Mar 28th 2019, 14:37 |
cnizzardini |
Awesome! |
# |
Mar 28th 2019, 14:37 |
ricksaccous |
so you have to return $response->withModifications |
# |
Mar 28th 2019, 14:36 |
ricksaccous |
$response is immutable |
# |
Mar 28th 2019, 14:36 |
cnizzardini |
Any reason filenames would not be getting set on downloads after upgrade from 3.5 to 3.7? Seems to be ignoring the filename and just doing index.csv now. This could was working prior in AppController::beforeRender ` if ($response->getType() == 'text/csv') { $filename = filter_var($this->request->getQuery('filename'), FILTER_SANITIZE_STRING); $response->withDownload($filename . ".csv"); }` |
# |
Mar 28th 2019, 13:50 |
cnizzardini |
worth checking to see what its doing at least |
# |
Mar 28th 2019, 13:50 |
ricksaccous |
meaning i haven't run into anything running too slow yet |