guojiaxing1995 / easy-test Goto Github PK
View Code? Open in Web Editor NEW自动化测试平台2.0
自动化测试平台2.0
运行starter.py的时候会报错
pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:8090: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
Request URL: http://127.0.0.1:5000/v1/user/project?page=1
{
"count": 10,
"data": [],
"page": 1,
"pages": 0,
"total": 0
}
【1】我在服务器上部署后端代码的时候报"ImportError: No module named libs.init",然后我在starter.py中加上了“sys.path.append('/home/lighthouse/item/easy-test/easy-test-flask/app')”这样一段,运行starter.py还是报“No module named libs.init”。
【2】我在本地部署后端代码的时候,lib.init可以被找到,但是如下目录找不到:flask_mail / flask_apscheduler / flask_celery /flask_pymongo / flask_socketio ,请问这几个目录是自定义的目录吗?
File "/home/lighthouse/.local/lib/python3.6/site-packages/cymysql/err.py", line 144, in _check_mysql_exception
raise InternalError(errno, errorvalue)
sqlalchemy.exc.InternalError: (cymysql.err.InternalError) (1054, "Unknown column 'Case.update_time' in 'order clause'") [SQL: 'SELECT case
.id AS case_id, case
.name AS case_name, case
.info AS case_info, case
.url AS case_url, case
.method AS method, case
.submit AS submit, case
.header AS case_header, case
.data AS case_data, case
.deal AS deal, case
.condition
AS case_condition, case
.type AS type, case
.expect AS expect, case
.assertion AS assertion, case
.case_group AS case_group, case_group.name AS group_name, lin_user.username AS create_user \nFROM case
INNER JOIN case_group ON case_group.id = case
.case_group INNER JOIN lin_user ON lin_user.id = case
.create_user \nWHERE case
.case_group = %s AND case
.name LIKE %s AND case
.url LIKE %s AND case
.delete_time IS NULL ORDER BY Case.update_time desc \n LIMIT %s, %s'] [parameters: ('1', '%%', '%%', 0, 10)] (Background on this error at: http://sqlalche.me/e/2j85)
请问该怎么不部署啊,教程有点不太懂,谢谢大佬解答🙏
root@VM-0-10-ubuntu:~/panda/easy-test-panda# docker-compose up -d
Building web
Step 1/6 : FROM nginx:1.17
---> 9beeba249f3e
Step 2/6 : RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
---> Using cache
---> 4cda9c5c03be
Step 3/6 : COPY dist/ /usr/share/nginx/html/
ERROR: Service 'web' failed to build: COPY failed: file not found in build context or excluded by .dockerignore: stat dist/: file does not exist
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/default.conf:7
2024/05/11 09:37:11 [emerg] 1#1: cannot load certificate "/home/www.xxx.com.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/www.xxx.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: [emerg] cannot load certificate "/home/www.xxx.com.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/www.xxx.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2024/05/11 09:38:11 [warn] 1#1: the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/default.conf:7
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/default.conf:7
2024/05/11 09:38:11 [emerg] 1#1: cannot load certificate "/home/www.xxx.com.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/www.xxx.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: [emerg] cannot load certificate "/home/www.xxx.com.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/www.xxx.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2024/05/11 09:39:11 [warn] 1#1: the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/default.conf:7
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/default.conf:7
2024/05/11 09:39:11 [emerg] 1#1: cannot load certificate "/home/www.xxx.com.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/www.xxx.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: [emerg] cannot load certificate "/home/www.xxx.com.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/www.xxx.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
#vim /root/panda/easy-test-panda/easy-test-vue/Dockerfile
FROM nginx:1.17
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
#COPY dist/ /usr/share/nginx/html/
COPY default.conf /etc/nginx/conf.d/
#COPY www.xxx.com.pem /home/
#COPY www.xxx.com.key /home/
~
~
一个工程下多工用例怎么关联执行呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.