numbers / skeleton
Numbers 框架的 Skeleton 应用程序
Requires
- php: >=8.1.0
- dev-master
- 1.0.49
- 1.0.48
- 1.0.47
- 1.0.46
- 1.0.45
- 1.0.44
- 1.0.43
- 1.0.42
- 1.0.41
- 1.0.40
- 1.0.39
- 1.0.38
- 1.0.37
- 1.0.36
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-09-09 17:28:14 UTC
README
安装说明
-
创建新项目
composer create-project --no-install numbers/skeleton [项目目录]
注意:Composer 必须安装在您的系统上。注意:我们在这里通过使用 --no-install 选项跳过 vendor 目录;
-
构建应用程序
导航到 [项目目录] 并运行以下命令
make build
注意:默认情况下,应用程序将编译为生产模式运行。您可以使用 "make deployment_development" 编译为开发模式。
-
设置主机
3.1) 对于单主机应用程序,将条目添加到 /etc/hosts 中,如下所示;
127.0.0.1 [your domain]
3.2) 对于多主机应用程序,您需要安装 "dnsmasq" 并将条目添加到 dnsmasq.conf 文件中,如下所示;
address=/.[your domain]/127.0.0.1 Note: For development you can add entry to process all domains that ends with .local: address=/.local/127.0.0.1
-
设置 Apache
4.1) 以 [项目目录]/conf/dev/vhosts.000.general.conf 为模板,将其放入 Apache 配置文件夹;
4.2) 以 [项目目录]/conf/dev/vhosts.100.your_domain.conf 为模板,将 [your domain] 替换为您的域名,根据您的系统调整目录,并将其放入您的 Apache 配置文件夹;
4.3) 重启 Apache
-
创建数据库并提升模式变更
框架提供两种将模式变更提升到数据库的选项
5.1) 直接模式变更,可用命令:make schema_test make schema_commit make schema_drop
5.2) 迁移,可用命令:make migration_code_test make migration_code_commit make migration_code_drop make migration_db_test make migration_db_commit make migration_db_rollback
注意:如果您希望迁移是强制性的提升方法,您可以在 environment.ini 文件中设置以下设置
application.structure.db_migration = 1 In this case you cannot run schema commands and vise versa.
注意:您需要导航到 [项目目录] 以运行 make 命令。
-
在浏览器中运行您的应用程序并享受吧。