
1. 下载walle-web
```
git clone https://github.com/meolu/walle-web-v1.x.git walle-web
```
2. 修改walle的mysql配置
```
cd walle-web/
vim config/local.php
```
3. 安装vendor
```
composer install
```
4. 初始化项目
```
./yii walle/setup
```
5. 给php进程者权限及免密码登录
```
vipw /etc/passwd
```
```
ssh-keygen -t rsa -C "tjjstan@qq.com"
ssh-copy-id -i /var/lib/nginx/.ssh/id_rsa.pub git@127.0.0.1
```
如果报错则在`/etc/ssh/ssh_config`添加
```
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
```
6. 确认php进程用户有代码存储仓库/data/www/deploy/520读写权限
```
usermod -a -G web nginx
```
7. 设置umask
```
vim /etc/profile
umask 002
source /etc/profile
```