Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hgz6536 committed Jul 29, 2016
1 parent a70ccbb commit a8e2d83
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 3 deletions.
69 changes: 67 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# opman
### 本项目交流群 ###
`580838402`

## 运行环境介绍 ##

系统:KaLi 2016
Expand All @@ -13,8 +12,74 @@
1. 考勤管理已经完成,released v1.0.1

## 部署方法 ##

- 克隆代码

`cd /data/webroot`

`git clone https://github.com/hgz6536/opman-django.git`

- 初始化项目

参考:http://blog.niubilety.com/2016/06/08/554.html

- 安装uwsgi

`pip3 install uwsgi`

- nginx配置文件

upstream opman {

server 127.0.0.1:8000;
}

server {

listen 80;
server_name opman.niubilety.com
charset utf-8;

gzip on;
gzip_min_length 1000;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 3;
gzip_vary on;

client_max_body_size 8M;

#access_log /data/logs/nginx/opman_access.log;
#error_log /data/logs/nginx/opman_error.log;

location /medis {
alias /data/opman-django/media;
}

location /static {
alias /data/opman-django/static;
}

location / {
uwsgi_pass opman;
include /etc/nginx/uwsgi_params;
}

}

- 启动uwsgi

`uwsgi --ini /data/webroot/opman-django/uwsgi.ini`

- 启动nginx

`/etc/init.d/nginx start`

## 本项目交流群 ##
`580838402`

如果困惑直击QQ
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=847644968&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:847644968:52" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>

## 结果展示 ##
### xlsx 文件上传 ###
Expand Down
2 changes: 1 addition & 1 deletion templates/GitLab/project.apply.upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% endblock %}

{% block content %}
<form class="form-horizontal" action="{% url "uploadapplyurl" ID Pname Url%}" method="post">
<form action="{% url "uploadapplyurl" ID Pname Url%}" method="post">
{% csrf_token %}
<style>
table {
Expand Down
14 changes: 14 additions & 0 deletions uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[uwsgi]
master = true
uid = www-data
gid = www-data
chdi = /data/opman-django
harakiri = 60
vacuum = true
processes = 3
chmod-socket = 664
max-requests = 5000
socket = 127.0.0.1:8000
pidfile = /tmp/opman.pid
daemonize = /data/logs/django/opman.log
wsgi-file = /data/opman-django/devop/wsgi.py

0 comments on commit a8e2d83

Please sign in to comment.