Code Monkey home page Code Monkey logo

easy-test's Issues

ImportError: No module named libs.init

【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”。

image

image

【2】我在本地部署后端代码的时候,lib.init可以被找到,但是如下目录找不到:flask_mail / flask_apscheduler / flask_celery /flask_pymongo / flask_socketio ,请问这几个目录是自定义的目录吗?

image

sql报错

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)

docker构建报错

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

大佬还在不在docker部署失败我觉得你这个平台相当好

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/
~
~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.