# sdjserver **Repository Path**: workwodrow/sdjserver ## Basic Information - **Project Name**: sdjserver - **Description**: No description available - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: wodrow - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-09-28 - **Last Updated**: 2021-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 省到家项目后台接口 ### 迁移教程 1. `git clone https://gitee.com/workwodrow/sdjserver.git` 2. 进入项目根目录`cd path/to/sdjserver` 3. 配置 `.env`,可以参考 `.env.example` 4. `composer install or update` 5. 配置访问地址,入口文件: `public/index.php` 6. nginx重写 ```allykeynamelanguage location / { try_files $uri $uri/ /index.php?$query_string; } location /h5/ { proxy_pass http://127.0.0.1:8001; } location /admin/ { proxy_pass http://127.0.0.1:8002; } ``` 7. `* * * * * cd path/to/project && php artisan schedule:run >> /dev/null 2>&1` ### 开发规范 #### git规范 ``` ● 创建功能分支feature-xxx分支 ● 成员在自己的本地分支进行开发,建议每天下班前提交自己的本地分支避免代码丢失 ● 功能开发完成,需要跟远程feature-xxx分支合并并解决冲突,一律使用rebase方式进行合并,不允许使用merge。 ● 功能开发期间可以经常性的合并远程feature-xxx分支的更新,可以更有效的解决冲突 ● 远程feature-xxx分支开发完成后合并master分支,删除远程feature-xxx分支 ● 本地开发分支可以保留,方便查看提交历史 ● 成员在自己的本地分支开发,建议及时提交自己的本地分支避免代码丢失 ● 功能开发完成,合并master分支并解决冲突 ● 基于线上的版本创建本地分支,建议使用worktree创建单独的工作目录进行bug修复 ● bug修复完成后合并远程hotfix分支 ● 如果master分支需要合并hotfix,将相关的提交cherry pick到master分支 ``` #### postman ``` ● 公用一个账号,可以做到接口同步 ● 写明注释文档,接口文档需要从其中生成 ```