raffaelj / cpmp-lib-skeleton Goto Github PK
View Code? Open in Web Editor NEWSkeleton to use CpMultiplane and Cockpit CMS as libraries with a clean root directory
License: MIT License
Skeleton to use CpMultiplane and Cockpit CMS as libraries with a clean root directory
License: MIT License
Hi Raffael,
following the composer and docker installation i got the following warning coming from the CpMultiplane plugin:
The "oomphinc/composer-installers-extender" plugin was skipped because it requires a Plugin API version ("^1.0") that do
es not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Warning: You forced the install of 1.10.17 via --1, but 2.0.7 is the latest stable version. Updating to it via composer
self-update --stable is recommended.
Any plans regard uptading oomphinc's plugin to version 2?
If needed, here's how to switch between composer versions:
composer self-update --1
composer self-update --2
Hi Raffael,
I'm having some troubles in trying to start a simple demo server (I can't figure out if it's a problem related to my local config or if it's just a bug), I hope I don't bother you too much...
Here are my steps:
# apache folder
cd D:/htdocs/
# create project folder
mkdir multiplane
cd multiplane
# initialize project structure
composer create-project raffaelj/cpmp-lib-skeleton .
# create admin user
php ./mp account/create --user admin --password admin --email [email protected]
# run quickstart routine
php ./mp multiplane/quickstart --template basic
php ./mp multiplane/create-dummy-data
Until here no strange errors in console, so after that I open http://localhost/multiplane/ and i got the following error:
The login link at the bottom of this page points to the following url: http://localhost/login/
These are the user-defined constants for http://localhost/multiplane/:
// index.php
// bootstrap cockpit or CpMultiplane
require(__DIR__.'/bootstrap.php');
echo '<pre>' . print_r( get_defined_constants(true)['user'], true ) . '</pre>';
Array
(
[CPMP_COCKPIT_PATH] => /lib/cockpit
[COCKPIT_DIR] => D:/htdocs/multiplane/lib/cockpit
[MP_ADMINFOLDER] => cockpit
[COCKPIT_ENV_ROOT] => D:/htdocs/multiplane/cpdata
[MP_ENV_ROOT] => D:/htdocs/multiplane
[MP_BASE_URL] =>
[COCKPIT_CLI] =>
[MP_COCKPIT_ADMIN_ROUTE] => /multiplane/
[COCKPIT_ADMIN] =>
[MP_DIR] => D:/htdocs/multiplane/lib/CpMultiplane
[MP_DOCS_ROOT] => D:/htdocs
[MP_ENV_URL] => D:/htdocs/multiplane
[MP_CONFIG_DIR] => D:/htdocs/multiplane/config
[MP_CONFIG_PATH] => D:/htdocs/multiplane/config/config.php
[MP_SELF_EXPORT] =>
[COCKPIT_SITE_DIR] => D:/htdocs/multiplane
[COCKPIT_START_TIME] => 1606666331.2246
[COCKPIT_DOCS_ROOT] => D:/htdocs
[COCKPIT_BASE_URL] => /multiplane/lib/cockpit
[COCKPIT_API_REQUEST] => 0
[COCKPIT_CONFIG_DIR] => D:/htdocs/multiplane/cpdata/config
[COCKPIT_BASE_ROUTE] => /multiplane/lib/cockpit
[COCKPIT_STORAGE_FOLDER] => D:/htdocs/multiplane/cpdata/storage
[COCKPIT_ADMIN_CP] => 0
[COCKPIT_PUBLIC_STORAGE_FOLDER] => D:/htdocs/multiplane/cpdata/storage
[COCKPIT_CONFIG_PATH] => D:/htdocs/multiplane/cpdata/config/config.php
)
and this is the folder structure:
# tree -L 2 -a
.
├── bootstrap.php
├── composer.json
├── composer.lock
├── config
├── cp
├── cpdata
│ ├── addons
│ ├── config
│ └── storage
├── defines.php
├── docker-compose.yml
├── .env.dist
├── .gitignore
├── .htaccess
├── .htaccess.dist
├── index.php
├── lib
│ ├── cockpit
│ ├── CpMultiplane
│ └── vendor
├── LICENSE
├── mp
└── README.md
# tree -apfiL 2
.
[-rwxrwxrwx] ./bootstrap.php
[-rwxrwxrwx] ./composer.json
[-rwxrwxrwx] ./composer.lock
[drwxrwxrwx] ./config
[-rwxrwxrwx] ./cp
[drwxrwxrwx] ./cpdata
[drwxrwxrwx] ./cpdata/addons
[drwxrwxrwx] ./cpdata/config
[drwxrwxrwx] ./cpdata/storage
[-rwxrwxrwx] ./defines.php
[-rwxrwxrwx] ./docker-compose.yml
[-rwxrwxrwx] ./.env.dist
[-rwxrwxrwx] ./.gitignore
[-rwxrwxrwx] ./.htaccess
[-rwxrwxrwx] ./.htaccess.dist
[-rwxrwxrwx] ./index.php
[drwxrwxrwx] ./lib
[drwxrwxrwx] ./lib/cockpit
[drwxrwxrwx] ./lib/CpMultiplane
[drwxrwxrwx] ./lib/vendor
[-rwxrwxrwx] ./LICENSE
[-rwxrwxrwx] ./mp
[-rwxrwxrwx] ./README.md
Happy thoughts,
Raruto
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.