ssnepenthe/wp-sqlite-starter
最新稳定版本:0.1.0
Composer 安装命令:
composer create-project ssnepenthe/wp-sqlite-starter
包简介
Starter repo for WordPress with Composer and SQLite
README 文档
README
Get a local WordPress environment up and running quickly with Composer and SQLite.
Usage
Installation is demonstrated below with WP-CLI but you can just as easily make manual updates to composer.json and public/wp-config.php, configure and start your server, and run the standard web installer.
$ composer create-project ssnepenthe/wp-sqlite-starter /path/to/project
It is important to update salts before going any further:
$ wp config shuffle-salts
Optionally you may want to make some other updates to your site config. For example:
WP_SQLITE_AST_DRIVERcan be used to enable the new AST-based SQLite driver.SQLITE_JOURNAL_MODEcan be used to set the SQLite journal mode.WP_DEBUGcan be used enable debug mode. When set totruethe defaultwp-config.phpfile will also setWP_DEBUG_LOG,SAVEQUERIES,WP_DEBUG_DISPLAY,WP_DISABLE_FATAL_ERROR_HANDLER, andSCRIPT_DEBUG.
$ wp config set WP_SQLITE_AST_DRIVER true --raw $ wp config set SQLITE_JOURNAL_MODE WAL $ wp config set WP_DEBUG true --raw
Run the WordPress installer and enable pretty permalinks (substitute your preferred permalink structure):
$ wp core install --url=localhost:8080 --title='My Title' --admin_user=admin --admin_email=admin@example.com --skip-email
$ wp rewrite structure /%postname%/
And finally start the server:
$ wp server
Notes
- If you need to modify the host or port to the install and server commands above, make sure to update the
WP_HOME,WP_SITEURL, andWP_CONTENT_URLconstants inpublic/wp-config.php. - It can be beneficial to run the WP-CLI server with multiple workers:
PHP_CLI_SERVER_WORKERS=4 wp server - For the moment, all composer dependencies are installed with the loosest version constraint (
*). This will likely change in the future as this repo is finalized. In the meantime, you may wish to modify the version constraints incomposer.jsonbefore runningcomposer install.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-29