mattgrshaw / wp-installer Goto Github PK
View Code? Open in Web Editor NEWSimple commands for managing local WordPress sites
License: GNU General Public License v3.0
Simple commands for managing local WordPress sites
License: GNU General Public License v3.0
What went well, and what could be improved? Any documentation changes you'd suggest?
Functional tests are an integral ingredient of highly-quality, maintainable commands. WP-CLI tries to make it as easy as possible to add functional tests to your package with its wp scaffold package-tests
command:
https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-tests
I'd encourage you to consider adding functional tests to your package :) By starting your functional tests early on, it also makes it much easier to maintain your project over time.
Hi,
I'm experiencing some problems with the script. I have the config.yml in the .wp-cli folder and when I execute :
________________________________________________________________________________
| ~/Documents/web @ client83-10-193-130 (Marc)
| => wp installer install test.com
Downloading WordPress...
________________________________________________________________________________
| ~/Documents/web @ client83-10-193-130 (Marc)
| =>
when downloading wordpress just stops and exits.
Any idea?
| ~/Documents/web @ client83-10-193-130 (Marc)
| => php -v
PHP 5.6.30 (cli) (built: Jul 3 2017 15:23:30)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
and the wp cli info
| ~/Documents/web @ client83-10-193-130 (Marc)
| => wp cli info
PHP binary: /Applications/MAMP/bin/php/php5.6.30/bin/php
PHP version: 5.6.30
php.ini used: /Applications/MAMP/bin/php/php5.6.30/conf/php.ini
WP-CLI root dir: phar://wp-cli.phar
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /Users/Marc/Documents/web
WP-CLI packages dir: /Users/Marc/.wp-cli/packages/
WP-CLI global config: /Users/Marc/.wp-cli/config.yml
WP-CLI project config:
WP-CLI version: 1.3.0
After checking this code
.....
....
if ( isset( $assoc_args['multisite'] ) ) {
$subcommand = 'multisite-install'; // set command to create multisite
}
$core_install = "wp --path=%s core %s --url=%s --title=%s --admin_user=%s --admin_password=%s --admin_email=%s";
WP_CLI::log( 'Installing WordPress...' );
WP_CLI::launch( \WP_CLI\Utils\esc_cmd( $core_install, $site_path, $subcommand, 'http://' . $args[0], $args[0], $admin_user, $admin_pass, $admin_email ) );
.....
...
I found no param to mentioned subdomain multisite and no way to add --skip-email param in current command.
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.