Skip to content

Installation script runs twice #5

@PhantomWatson

Description

@PhantomWatson
> DataCenter\Console\Installer::postInstall
Created `config/app.php` file
App name ('app_name' by default):projects
Full base URL ('https://sitename.cberdata.org' by default):https://projects.cberdata.org
Created `config/.env.dev`
Updated header, APP_NAME, SECURITY_SALT, FULL_BASE_URL, COOKIE_ENCRYPTION_KEY in .env.dev
Created `config/.env.production`
Updated header, APP_NAME, DEBUG, SECURITY_SALT, FULL_BASE_URL, COOKIE_ENCRYPTION_KEY in .env.production
Created `config/.env`
Created `C:\xampp\htdocs\projects/logs` directory
Created `C:\xampp\htdocs\projects/tmp` directory
Created `C:\xampp\htdocs\projects/tmp/cache` directory
Created `C:\xampp\htdocs\projects/tmp/cache/models` directory
Created `C:\xampp\htdocs\projects/tmp/cache/persistent` directory
Created `C:\xampp\htdocs\projects/tmp/cache/views` directory
Created `C:\xampp\htdocs\projects/tmp/sessions` directory
Created `C:\xampp\htdocs\projects/tmp/tests` directory
Set Folder Permissions ? (Default to Y) [Y,n]?
Copied `bootstrap.min.js` into webroot
Copied `glyphicons-halflings-regular.eot` into webroot
Copied `glyphicons-halflings-regular.svg` into webroot
Copied `glyphicons-halflings-regular.ttf` into webroot
Copied `glyphicons-halflings-regular.woff` into webroot
Copied `glyphicons-halflings-regular.woff2` into webroot

That should be the end, but then postInstall is called again:

> DataCenter\Console\Installer::postInstall
App name ('app_name' by default):projects
Full base URL ('https://sitename.cberdata.org' by default):https://projects.cberdata.org
Set Folder Permissions ? (Default to Y) [Y,n]?
Copied `bootstrap.min.js` into webroot
Copied `glyphicons-halflings-regular.eot` into webroot
Copied `glyphicons-halflings-regular.svg` into webroot
Copied `glyphicons-halflings-regular.ttf` into webroot
Copied `glyphicons-halflings-regular.woff` into webroot
Copied `glyphicons-halflings-regular.woff2` into webroot

I assume that this is because of

"post-create-project-cmd": "DataCenter\\Console\\Installer::postInstall",
"post-install-cmd": "DataCenter\\Console\\Installer::postInstall",

in composer.json. This should either be prevented or at least noted in README.md that "Hey, it's going to call postInstall() twice because of dumb.".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions