Nginx - location 匹配规则

参考链接

php 命名空间

参考链接

Git 忽略目录下所有文件

工程中,有时候需要让某个目录受版本控制,同时该目录下所有文件均不受版本控制,只需在该目录下 .gitignore 文件编辑如下内容即可

1
2
*
!.gitignore

Nginx 常用配置备忘

1. 强制 HTTPS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
server {
listen 443;

root /var/www/xxxxxx.com;
index index.html index.htm;

ssl on;
ssl_certificate /var/www/acme/xxxxxx.com/fullchain.cer;
ssl_certificate_key /var/www/acme/xxxxxx.com/xxxxxx.com.key;

server_name xxxxxx.com;
}

server {
listen 80;
server_name xxxxxx.com;

location / {
rewrite ^/(.*)$ https://$server_name/$1 permanent;
}
}

私有依赖库管理 - PHP

安装 Composer

  1. Download Composer

Artifactory 私有服务器搭建

团队协同开发中,存在多终端开发以及异地开发的场景,故需要在一个支持外网的服务器搭建仓库,并对访问权限作相应控制。

1. 仓库搭建

参考 私有依赖库管理 - Android

HTTPS 根证书相关

参考链接

CocoaPods - framework

参考链接

Groovy 笔记 - 1

macOS 下安装 groovy

1
brew install groovy

Git - 项目拆分

操作

  1. 使用 git subtree 为子项目创建一个 branch,该 branch 包含子项目相关的所有历史记录
  2. git clone 上述 branch,然后推送到目标仓库
  3. 根据需要,可清理上述 branch