app-template
app-template copied to clipboard
CakePHP 3.0 Version
We definitely want to keep the same features the app-template has - maybe even expand it if necessary - so filing this bug such that we don't forget.
We should also pull in whatever changes are necessary from the cakephp/app repo.
Can we keep it a vanilla install. As additions will be managed with Composer it's easier for people to add their own bits to it. Otherwise it means that people will have to remove plugins, update composer and then actually edit their code to remove any package code.
@davidyell Those who want vanilla can just use cakephp/app.
Oh yes, sorry. Forgot that obviously with 3.x the app would be included from Composer.
Okay so I think this can be done quite simply:
- clone
cakephp/app
- set this gist as the
app.default.php
file - add this gist as the
.env.default
file - around line 60 of
bootstrap.php
, add the following:
josegonzalez\Dotenv\Loader::load([
'filepaths' => [
__DIR__ . DS . '.env',
__DIR__ . DS . '.env.default',
],
'toServer' => true,
'skipExisting' => ['toServer'],
'raiseExceptions' => true
]);
Open question: Do we want to keep or remove all the cakephp/app
history? If keep, it makes updating it in the future potentially easier.
This should also require @stable
were possible. Probably also crud-view
and authenticate
? How does everyone feel about that?