1、登录git
https://github.com/meolu/walle-web
2、创建密钥
setting->SSH and GPG keys->New SSH key
title 随便写 lipy
key 需要到宿主机生成
运行 ssh-keygen -t rsa -C "lpy815563745@qq.com"
一路回车
进入 vim /root/.ssh/id_rsa.pub 复制全部
粘贴到上面的key中
git clone git@github.com:meolu/walle-web.git
cd walle-web
vim config/local.php
修改里面的db 数据库连接
composer install
./yii walle/setup
添加vhosts 配置文件
修改php-fpm.conf文件
pm.max_children = 128
pm.start_servers = 8
pm.min_spare_servers = 8
修改目标机器上的发布版本库目录权限(改为root所拥有有写入权限)
进入 vim /root/.ssh/id_rsa.pub 复制全部
打开目标机器上
vim /root/.ssh/authorized_keys
粘贴进去
进入项目git 里的 Deploy keys
新增密钥,title:root
key:粘贴上面的
https://github.com/meolu/walle-web
2、创建密钥
setting->SSH and GPG keys->New SSH key
title 随便写 lipy
key 需要到宿主机生成
运行 ssh-keygen -t rsa -C "lpy815563745@qq.com"
一路回车
进入 vim /root/.ssh/id_rsa.pub 复制全部
粘贴到上面的key中
git clone git@github.com:meolu/walle-web.git
cd walle-web
vim config/local.php
修改里面的db 数据库连接
composer install
./yii walle/setup
添加vhosts 配置文件
修改php-fpm.conf文件
pm.max_children = 128
pm.start_servers = 8
pm.min_spare_servers = 8
修改目标机器上的发布版本库目录权限(改为root所拥有有写入权限)
进入 vim /root/.ssh/id_rsa.pub 复制全部
打开目标机器上
vim /root/.ssh/authorized_keys
粘贴进去
进入项目git 里的 Deploy keys
新增密钥,title:root
key:粘贴上面的