安装git
yum install git
git的简单使用介绍
1 初始化
git init
2 生成ssh Key
ssh-keygen -t rsa -C “你的邮箱@qq.com”
3 将~/.ssh/id_rsa.pub写入到gitee设置SSH中
4 确认ssh连接
ssh -T git@gitee.com
返回Welcome
5 到安装网站根目录
git remote add origin git@gitee.com:yxsda/web.git
git remote -v
git remote rm origin
git pull origin master
git push origin master
更改django设置
nginx 配置
server{
charset utf-8;
listen 80;
server_name shuilineican.com;
location /static {
alias /root/web/test/static;
}
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:80001;
}
}
server{
charset utf-8;
listen 80;
server_name www.shuilineican.com;
return 301 http://shuilineican.com$request_uri;
location /static {
alias /root/web/test/static;
}
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:80001;
}
}
nginx note:
etc/nginx/nginx.conf:第一行修改为root是你的用户名
user root
配置gunicorn
直接启动
gunicorn –bind http://127.0.0.1:80001 mysite.wsgi:application