FunnyWolf/viperpython

按照开发手册配置后,前端页面无法显示

Closed this issue · 1 comments

按照https://www.yuque.com/vipersec/code/nqmgvy 开发环境部署后,启动django

ssh://root@172.16.171.129:60010/usr/local/bin/python3 -u /root/viper/manage.py runserver 127.0.0.1:60002
[INFO][2022-02-12 14:19:12][autoreload][run_with_reloader][637][MainThread] : Watching for file changes with StatReloader 
Performing system checks...

[WARNING][2022-02-12 14:19:13][postmoduleconfig][load_all_modules_config][214][MainThread] : 内置模块加载完成,加载97个模块 
[WARNING][2022-02-12 14:19:13][postmoduleconfig][load_all_modules_config][281][MainThread] : 自定义模块加载完成,加载0个模块 
[WARNING][2022-02-12 14:19:13][montior][start][141][MainThread] : 后台服务启动成功 
System check identified no issues (0 silenced).
February 12, 2022 - 14:19:13
Django version 3.2.6, using settings 'Viper.settings'
Starting ASGI/Channels version 3.0.4 development server at http://127.0.0.1:60002/
Quit the server with CONTROL-C.

centos中服务输出
image

前端无法显示
image

问题已解决。
1、在Pycharm下载docker中代码到本地时,有几个文件下载失败,需要注意
image
2、在配置Pycharm的python解释器路径时,会勾选自动上传项目文件到服务器
image

问题就出在这,他会将下载失败的几个文件上传到docker中覆盖原来好的文件,造成前端无法显示