Skip to content

Commit 03e8b5f

Browse files
committed
http_test docker
1 parent 9d9bb7d commit 03e8b5f

File tree

7 files changed

+15
-33
lines changed

7 files changed

+15
-33
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# my_python_practise
22

3+
4+
数据文件放在/var/www/rw 下面 都将所有权限改为777
5+
静态文件 /var/www/static 下面
6+
37
## ai2048
48
- 提供2048的初始化和移动操作
59
- 提供2种简单的自动移动策略

http_test/Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
FROM python3
1+
FROM python:3
2+
WORKDIR /usr/shengji/py
3+
COPY requirements.txt .
4+
RUN pip install -r requirements.txt
5+
COPY *.py ./
6+
CMD ["python", "main.py", "--store_path=/var/www/rw"]

http_test/http_test_handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from tornado.web import RequestHandler
22
import json
33
import asyncio
4-
import http_base_handler
4+
from server_common import http_base_handler
55
import set_manager
66

77

http_test/main.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import os
66
from tornado.log import gen_log, app_log
77
import logging
8-
sys.path.append(os.path.join(os.pardir, 'server_common'))
98

109
import http_test_handler
1110
import set_manager

http_test/requirements.txt

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
astroid==2.2.5
2-
certifi==2018.10.15
3-
chardet==3.0.4
4-
idna==2.7
5-
isort==4.3.20
6-
lazy-object-proxy==1.4.1
7-
mccabe==0.6.1
8-
pylint==2.3.1
9-
qiniu==7.2.2
10-
requests==2.20.1
11-
six==1.12.0
12-
tornado==5.1.1
13-
typed-ast==1.4.0
14-
urllib3==1.24.1
15-
wrapt==1.11.1
1+
tornado
2+
3+
git+https://github.com/hitner/python_practise.git

nginx_conf/nginx.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ http {
1919
listen 8999;
2020
server_name _;
2121
location /static/ {
22-
root /Users/liuzhuzhai/Server;
22+
root /var/www;
2323
}
2424

2525
location /testsets/ {

setup.py

-14
This file was deleted.

0 commit comments

Comments
 (0)