easyengine / site-type-php
PHP网站创建的EasyEngine包。
Requires (Dev)
- wp-cli/mustangostang-spyc: ^0.6.3
This package is auto-updated.
Last update: 2024-09-27 16:08:15 UTC
README
PHP网站创建的EasyEngine包。
使用
此包实现了以下命令
ee site create --type=php
运行标准的PHP网站安装。
ee site create --type=php <site-name> [--cache] [--admin-email=<admin-email>] [--with-db] [--local-db] [--php=<php-version>] [--dbname=<dbname>] [--dbuser=<dbuser>] [--dbpass=<dbpass>] [--dbhost=<dbhost>] [--with-local-redis] [--skip-check] [--skip-status-check] [--ssl=<value>] [--wildcard] [--force]
选项
<site-name>
Name of website.
[--cache]
Use redis cache for PHP.
[--admin-email=<admin-email>]
E-Mail of the administrator.
[--with-db]
Create database for php site.
[--local-db]
Create separate db container instead of using global db.
[--php=<php-version>]
PHP version for site. Currently only supports PHP 5.6 and latest.
---
default: latest
options:
- 5.6
- 7.2
- latest
---
[--dbname=<dbname>]
Set the database name.
[--dbuser=<dbuser>]
Set the database user.
[--dbpass=<dbpass>]
Set the database password.
[--dbhost=<dbhost>]
Set the database host. Pass value only when remote dbhost is required.
[--with-local-redis]
Enable cache with local redis container.
[--skip-check]
If set, the database connection is not checked.
[--skip-status-check]
Skips site status check.
[--ssl=<value>]
Enables ssl on site.
[--wildcard]
Gets wildcard SSL .
[--force]
Resets the remote database if it is not empty.
示例
# Create php site (without db)
$ ee site create example.com --type=php
# Create php site with db
$ ee site create example.com --type=php --with-db
# Create php site with ssl from letsencrypt
$ ee site create example.com --type=php --ssl=le
# Create php site with wildcard ssl
$ ee site create example.com --type=php --ssl=le --wildcard
# Create php site with self signed certificate
$ ee site create example.com --type=php --ssl=self
# Create php site with remote database
$ ee site create example.com --type=php --with-db --dbhost=localhost --dbuser=username --dbpass=password
ee site delete
删除一个网站。
ee site delete <site-name> [--yes]
选项
<site-name>
Name of website to be deleted.
[--yes]
Do not prompt for confirmation.
示例
# Delete site
$ ee site delete example.com
ee site update
支持更新和升级网站。
ee site update [<site-name>] [--ssl=<ssl>] [--wildcard]
[<site-name>]
Name of the site.
[--ssl=<ssl>]
Enable ssl on site
[--wildcard]
Enable wildcard SSL on site.
示例
# Add SSL to non-ssl site
$ ee site update example.com --ssl=le
# Add SSL to non-ssl site
$ ee site update example.com --ssl=le --wildcard
# Add self-signed SSL to non-ssl site
$ ee site update example.com --ssl=self
ee site info --type=php
运行标准的PHP网站安装。
ee site info --type=php <site-name> [--cache] [--admin-email=<admin-email>] [--with-db] [--local-db] [--php=<php-version>] [--dbname=<dbname>] [--dbuser=<dbuser>] [--dbpass=<dbpass>] [--dbhost=<dbhost>] [--with-local-redis] [--skip-check] [--skip-status-check] [--ssl=<value>] [--wildcard] [--force]
选项
<site-name>
Name of website.
[--cache]
Use redis cache for PHP.
[--admin-email=<admin-email>]
E-Mail of the administrator.
[--with-db]
Create database for php site.
[--local-db]
Create separate db container instead of using global db.
[--php=<php-version>]
PHP version for site. Currently only supports PHP 5.6 and latest.
---
default: latest
options:
- 5.6
- 7.2
- latest
---
[--dbname=<dbname>]
Set the database name.
[--dbuser=<dbuser>]
Set the database user.
[--dbpass=<dbpass>]
Set the database password.
[--dbhost=<dbhost>]
Set the database host. Pass value only when remote dbhost is required.
[--with-local-redis]
Enable cache with local redis container.
[--skip-check]
If set, the database connection is not checked.
[--skip-status-check]
Skips site status check.
[--ssl=<value>]
Enables ssl on site.
[--wildcard]
Gets wildcard SSL .
[--force]
Resets the remote database if it is not empty.
示例
# Create php site (without db)
$ ee site create example.com --type=php
# Create php site with db
$ ee site create example.com --type=php --with-db
# Create php site with ssl from letsencrypt
$ ee site create example.com --type=php --ssl=le
# Create php site with wildcard ssl
$ ee site create example.com --type=php --ssl=le --wildcard
# Create php site with self signed certificate
$ ee site create example.com --type=php --ssl=self
# Create php site with remote database
$ ee site create example.com --type=php --with-db --dbhost=localhost --dbuser=username --dbpass=password
ee site enable
启用一个网站。如果它们已停止,它将启动网站的docker容器。
ee site enable [<site-name>] [--force] [--verify]
选项
[<site-name>]
Name of website to be enabled.
[--force]
Force execution of site enable.
[--verify]
Verify if required global services are working.
示例
# Enable site
$ ee site enable example.com
# Enable site with verification of dependent global services. (Note: This takes longer time to enable the
site.)
$ ee site enable example.com --verify
# Force enable a site.
$ ee site enable example.com --force
ee site disable
禁用一个网站。如果它们正在运行,它将停止并删除网站的docker容器。
ee site disable [<site-name>]
选项
[<site-name>]
Name of website to be disabled.
示例
# Disable site
$ ee site disable example.com
ee site info
显示所有相关网站信息、凭据和有用链接。
ee site info [<site-name>]
[<site-name>]
Name of the website whose info is required.
示例
# Display site info
$ ee site info example.com
ee site ssl
验证ssl挑战并(如果已过期)更新证书。
ee site ssl <site-name> [--force]
选项
<site-name>
Name of website.
[--force]
Force renewal.
ee site list
列出已创建的网站。
ee site list [--enabled] [--disabled] [--format=<format>]
摘要列表
[--enabled]
List only enabled sites.
[--disabled]
List only disabled sites.
[--format=<format>]
Render output in a particular format.
---
default: table
options:
- table
- csv
- yaml
- json
- count
- text
---
示例
# List all sites
$ ee site list
# List enabled sites
$ ee site list --enabled
# List disabled sites
$ ee site list --disabled
# List all sites in JSON
$ ee site list --format=json
# Count all sites
$ ee site list --format=count
ee site reload --type=php
运行标准的PHP网站安装。
ee site reload --type=php <site-name> [--cache] [--admin-email=<admin-email>] [--with-db] [--local-db] [--php=<php-version>] [--dbname=<dbname>] [--dbuser=<dbuser>] [--dbpass=<dbpass>] [--dbhost=<dbhost>] [--with-local-redis] [--skip-check] [--skip-status-check] [--ssl=<value>] [--wildcard] [--force]
选项
<site-name>
Name of website.
[--cache]
Use redis cache for PHP.
[--admin-email=<admin-email>]
E-Mail of the administrator.
[--with-db]
Create database for php site.
[--local-db]
Create separate db container instead of using global db.
[--php=<php-version>]
PHP version for site. Currently only supports PHP 5.6 and latest.
---
default: latest
options:
- 5.6
- 7.2
- latest
---
[--dbname=<dbname>]
Set the database name.
[--dbuser=<dbuser>]
Set the database user.
[--dbpass=<dbpass>]
Set the database password.
[--dbhost=<dbhost>]
Set the database host. Pass value only when remote dbhost is required.
[--with-local-redis]
Enable cache with local redis container.
[--skip-check]
If set, the database connection is not checked.
[--skip-status-check]
Skips site status check.
[--ssl=<value>]
Enables ssl on site.
[--wildcard]
Gets wildcard SSL .
[--force]
Resets the remote database if it is not empty.
示例
# Create php site (without db)
$ ee site create example.com --type=php
# Create php site with db
$ ee site create example.com --type=php --with-db
# Create php site with ssl from letsencrypt
$ ee site create example.com --type=php --ssl=le
# Create php site with wildcard ssl
$ ee site create example.com --type=php --ssl=le --wildcard
# Create php site with self signed certificate
$ ee site create example.com --type=php --ssl=self
# Create php site with remote database
$ ee site create example.com --type=php --with-db --dbhost=localhost --dbuser=username --dbpass=password
ee site restart --type=php
运行标准的PHP网站安装。
ee site restart --type=php <site-name> [--cache] [--admin-email=<admin-email>] [--with-db] [--local-db] [--php=<php-version>] [--dbname=<dbname>] [--dbuser=<dbuser>] [--dbpass=<dbpass>] [--dbhost=<dbhost>] [--with-local-redis] [--skip-check] [--skip-status-check] [--ssl=<value>] [--wildcard] [--force]
选项
<site-name>
Name of website.
[--cache]
Use redis cache for PHP.
[--admin-email=<admin-email>]
E-Mail of the administrator.
[--with-db]
Create database for php site.
[--local-db]
Create separate db container instead of using global db.
[--php=<php-version>]
PHP version for site. Currently only supports PHP 5.6 and latest.
---
default: latest
options:
- 5.6
- 7.2
- latest
---
[--dbname=<dbname>]
Set the database name.
[--dbuser=<dbuser>]
Set the database user.
[--dbpass=<dbpass>]
Set the database password.
[--dbhost=<dbhost>]
Set the database host. Pass value only when remote dbhost is required.
[--with-local-redis]
Enable cache with local redis container.
[--skip-check]
If set, the database connection is not checked.
[--skip-status-check]
Skips site status check.
[--ssl=<value>]
Enables ssl on site.
[--wildcard]
Gets wildcard SSL .
[--force]
Resets the remote database if it is not empty.
示例
# Create php site (without db)
$ ee site create example.com --type=php
# Create php site with db
$ ee site create example.com --type=php --with-db
# Create php site with ssl from letsencrypt
$ ee site create example.com --type=php --ssl=le
# Create php site with wildcard ssl
$ ee site create example.com --type=php --ssl=le --wildcard
# Create php site with self signed certificate
$ ee site create example.com --type=php --ssl=self
# Create php site with remote database
$ ee site create example.com --type=php --with-db --dbhost=localhost --dbuser=username --dbpass=password
ee site share
使用ngrok在线分享一个网站。
ee site share <site-name> [--disable] [--refresh] [--token=<token>]
选项
<site-name>
Name of website.
[--disable]
Take online link down.
[--refresh]
Refresh site share if link has expired.
[--token=<token>]
ngrok token.
示例
# Share a site online
$ ee site share example.com
# Refresh shareed link if expired
$ ee site share example.com --refresh
# Disable online link
$ ee site share example.com --disable
ee site clean
清除网站的Object和Page缓存。
ee site clean [<site-name>] [--page] [--object]
选项
[<site-name>]
Name of website to be enabled.
[--page]
Clear page cache.
[--object]
Clear object cache.
示例
# Clear Both cache type for site.
$ ee site clean example.com
# Clear Object cache for site.
$ ee site clean example.com --object
# Clear Page cache for site.
$ ee site clean example.com --page
贡献
我们感谢您主动为这个项目做出贡献。
贡献不仅限于代码。我们鼓励您以最适合您能力的方式做出贡献,例如撰写教程、在当地聚会中进行演示、帮助其他用户解答支持问题或修订我们的文档。
报告错误
认为发现了错误?我们很高兴您能帮助我们将其修复。
在创建新问题之前,您应该 搜索现有问题,看看是否有现成的解决方案,或者它是否已在较新版本中修复。
在搜索过并发现没有针对您的错误的开放或已修复问题后,请 创建一个新问题。尽可能提供详细信息,如果可能,请提供清晰的复现步骤。
创建拉取请求
想要贡献一个新功能?请首先 创建一个新问题,讨论该功能是否适合该项目。
支持
Github问题不是用于一般支持问题的地方,但您还可以尝试其他地方: https://easyengine.io/support/
此README.md是从项目的代码库动态生成的,使用ee scaffold package-readme
(文档)。要提出更改建议,请向代码库的相应部分提交拉取请求。