isfawwaz / wedangpress
使用Composer管理完整的WordPress项目
v1.1.0
2021-04-19 09:15 UTC
Requires
- isfawwaz/lorasin: 0.1.1
- wpackagist-plugin/broken-link-checker: 1.11.15
- wpackagist-plugin/contact-form-7: 5.4
- wpackagist-plugin/elementor: 3.1.4
- wpackagist-plugin/google-analytics-dashboard-for-wp: 6.7.0
- wpackagist-plugin/limit-login-attempts: 2.0beta3
- wpackagist-plugin/maintenance: 4.02
- wpackagist-plugin/w3-total-cache: 2.1.2
- wpackagist-plugin/wordpress-seo: 16.1.1
- wpackagist-plugin/wp-smushit: 3.8.4
This package is auto-updated.
Last update: 2024-09-21 00:59:40 UTC
README
用于使用WordPress框架启动网站项目。
安装
首先,为访问GitHub创建个人令牌,点击这里
然后,更改Composer的GitLab配置,输入
composer config --global --auth gitlab-token.gitlab.com <token>
接下来,使用项目composer安装这些工具
composer create-project isfawwaz/wedangpress <folder-name> --repository='{"type": "vcs", "url": "https://github.com/isfawwaz/wedangpress.git"}'
或
composer create-project isfawwaz/wedangpress <folder-name> --repository='{"type": "github", "url": "https://github.com/isfawwaz/wedangpress.git"}'
设置
在编辑设置之前,请运行以下命令
composer install --optimize-autoloader
首先必须执行的是创建配置文件,其中包含不同目的的几个文件
live-config.php
用于直播网站的需求staging-config.php
用于staging服务器的需求local-config.php
用于本地开发的需求
您可以在dynamic-config-sample.php
文件中查看应创建的示例配置,然后输入变量值
cp -i dynamic-config-sample.php <filename>
安装WordPress
请确保您的PC或笔记本电脑已安装wp-cli
wp core install --url=WEBURL --title="TITLE" --admin_user=USERNAME --admin_password=PASSWORD --admin_email=EMAIL
更新WordPress
请确保您的PC或笔记本电脑已安装wp-cli
wp core update
重新生成Salt
请确保您的PC或笔记本电脑已安装wp-cli
wp config shuffle-salts
启用主题
要启用主题,请运行以下命令
wp theme activate batik
更新插件和主题
编辑composer.json
并更改插件版本到最新版本
贡献
欢迎提交拉取请求。对于重大更改,请先提交问题以讨论您想要更改的内容。
请确保根据需要更新测试。