Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我在portainer上一栈部署的,访问是白板 请问怎么解决 #30

Open
lonrencn opened this issue May 17, 2024 · 6 comments
Open

Comments

@lonrencn
Copy link

lonrencn commented May 17, 2024

version: '3.7'

services:
  picServerV2:
    image: itchenliang/pic-server-v2
    container_name: picServerV2
    networks:
      - pic-net
    ports:
      - "4000:4000"
    environment:
      - DB_USERNAME=lig*****
      - DB_PASSWORD=********
      - DB_HOST=********
      - DB_PORT=3306
      - DB_DATABASE=lig*****
      - APP_PORT=4000
      - NPM_REGISTRY=https://registry.npmmirror.com
    volumes:
      - ~/lightfastpicture/public:/server/public

  picClientV2:
    image: itchenliang/pic-client-v2
    container_name: picClientV2
    networks:
      - pic-net
    ports:
      - "9099:80"


networks:
  pic-net:
    external: true # 告诉Docker Compose使用外部网络
    name: pic-net # 确定外部网络的名称

sever logs:

Executing (default): SELECT id, website, contact, system, uplog, bucket_service, createdAt, updatedAt FROM setting AS Setting LIMIT 1;

client logs:

  1. AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" "-"
    192.168.1.136 - - [17/May/2024:17:44:56 +0000] "GET /echarts.js HTTP/1.1" 200 3334642 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" "-"
    192.168.1.136 - - [17/May/2024:17:44:56 +0000] "GET /favicon.ico HTTP/1.1" 200 16958 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" "-"
    192.168.1.136 - - [17/May/2024:17:44:56 +0000] "POST /v1/setting/default HTTP/1.1" 200 55 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" "-"

****数据库是通的

image 这里面只有表结构,没有任何数据

@aiceflower
Copy link

sql语句直接执行下初始化就好了

@lonrencn
Copy link
Author

lonrencn commented Jul 6, 2024

sql语句直接执行下初始化就好了

已经初始化了,还是白板,单独访问服务端出现 welcome提示
客户端还是白板,检查控制台提示l 未定义
Uncaught (in promise) TypeError: l is undefined
Ve http://127.0.0.1:9099/static/js/index-08v4467x.js:1

172.26.0.1 - - [06/Jul/2024:12:30:25 +0000] "P0ST /v1/setting/default HTTP/1.1" 200 2243 "" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:1
27.0) Gecko/20100101 Firefox/127.0" "
"
172.26.0.1 - - [06/Jul/2024:12:31:02 +0000] "GET /static/css/index-HEzhKsKQ.css HTTP/1.1" 200 79628 "" "Mozilla/5.0 (X11; Ubuntu; Linux X
86_64; rv:127.0) Gecko/20100101 Firefox/127.0" "
"
172.26.0.1 - - - [06/Jul/2024:12:31:03 +0000] "GET /favicon.ico HTTP/1.1" 200 16958 "" "Mozilla/5.@ (X11; Ubuntu; Linux x86_64; rv:127.0) G
eck0/20100101 Firefox/127.0" "
"
172.26.0.1 - - [06/Jul/2024:12:31:04 +0000] "P0ST /v1/setting/default HTTP/1.1" 200 2243 "" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:1
27.0) Geck0/20100101 Firefox/127.0" "
"
172.26.0.1 - - [06/Jul/2024:12:31:04 +0000] "GET /undefined HTTP/1.1" 200 1721 "" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Geck
0/20100101 Firefox/127.0" "
"
172.26.0.1 - - [06/Jul/2024:12:33:17 +0000] "GET /global.config.js HTTP/1.1" 200 72 "" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0)
Gecko/20100101 Firefox/127.0" "
"
172.26.0.1 - - [06/Jul/2024:12:33:17 +0000] "GET /china.js HTTP/1.1" 200 182157 "" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gec
ko/20100101 Firefox/127.@" "
"

都200了,还是打不开,是不是我哪设置不对啊

server:

Executing (default): SELECT'id',website','contact','system',‘uplog',"bucket_service',createdAt','updatedAt'FROM 'setting' AS'Setting LIMIT1;

@lonrencn
Copy link
Author

lonrencn commented Jul 6, 2024

我是用的porntainer部署的

@lonrencn
Copy link
Author

lonrencn commented Jul 6, 2024

还能是数据库方言的问题?

@wxhhs
Copy link

wxhhs commented Oct 30, 2024

这个项目纯纯不想评价,compose部署 用的还是官方自己的api 地址 可真笑死我了

@lonrencn
Copy link
Author

这个compose是ai生成的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants