just-core / scripts
just-core生态系统的管理脚本,基本的发布管理,数据库同步和其他一些功能
dev-master
2018-02-13 21:07 UTC
Requires
- chglongstone/mysql-db-sync: dev-master
- mmatuson/schemasync: dev-master
Suggests
- just-core/auth-login: Authentication Page Plugin for the just-core eco system
- just-core/auth-page: Page White/Black list Plugin for the just-core eco system
- just-core/dao-orm: Object Relational Manager Stub extends Data Access Object for the just-core eco system
- just-core/foundation: PHP Enterprise (HA) High Availability Framework, develop quick and simple, deploy quick and consistent
- just-core/http-optimization: Static asset management, js, css etc. Compile to reduce http request load requests, minify to reduce http load times
- just-core/metronic: support for metronic templates in the just-core eco system
- just-core/scripts: management scripts for the just-core eco system, basic release management stuff, db syncronization some other things
- just-core/stub: Stub application for the just-core eco system, see how simple it is...
This package is auto-updated.
Last update: 2019-12-16 08:33:48 UTC
README
just core管理脚本
##目的 基本管理脚本,基于just-core-stub项目部署发布等
##项目布局 项目主要处理生产环境,但在某些情况下会引用开发环境
预期你的项目将遵循相当标准的SDLC,基于标签的固定发布,布局如下:
#ls -alh /var/www/vhosts
[project_name] -> [project_name]_release/current
[project_name]_release
cfg
current -> v0.0.3
v0.0.1
v0.0.2
v0.0.3
...
AUTOLOAD -> ../../cfg
...
[domain1].com
http -> ../[project_name]/APIS/[API_NAME_1]/
[dev*].[domain1].com
http -> ../[project_name]_dev/APIS/[API_NAME_1]/
[domain2].com
http -> ../[project_name]/APIS/[API_NAME_2]/
[dev*].[domain2].com
http -> ../[project_name]_dev/APIS/[API_NAME_2]/
[project_name]_dev
update_production.sh
生产发布脚本将遵循以下常规:
- 检出发布标签到目录
[project_name]_release/[release_tag]
- 在新检出中更新composer
- 在现有的
[project_name]/
目录中设置维护通知 - 将
CONFIG/AUTOLOAD/
目录下匹配*.global.php
的任何文件复制到[project_name]_release/cfg/
- 消费上游更改
- 保留本地更改(匹配
*.local.php
)
- 创建符号链接
AUTOLOAD -> ../../cfg
- 执行任何数据库操作
- 删除并重新创建符号链接
[project_name]_release/current
到更新后的发布版本 - 维护通知将自动取消
##此包的安装
# install.sh
# install_config.sh