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

快速开始部署的项目,无法登录。 #44

Open
DeSireFire opened this issue May 15, 2023 · 3 comments
Open

快速开始部署的项目,无法登录。 #44

DeSireFire opened this issue May 15, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@DeSireFire
Copy link

Bug 描述
image

复现步骤
该 Bug 复现步骤如下

  1. 创建docker-compose.yml文件
  2. 粘贴README里快速启动的docker配置内容
  3. 配置文件内容
version: '3'
services:
  master:
    image: zkqiang/crawlab-lite:latest
    container_name: master
    ports:
      - "8081:8080"
    volumes:
      - "./data:/app/data"  # persistent volume

4.宝塔&腾讯云端口均已经放通
5.使用的是ip+端口的方式访问

期望结果
我想登录进去看看功能

截屏
image
image

@DeSireFire DeSireFire added the bug Something isn't working label May 15, 2023
@Super-Brother
Copy link

version: '3'
services:
master:
image: zkqiang/crawlab-lite:latest
container_name: master
ports:
- "8080:8080"
- "8000:8000"
volumes:
- "./data:/app/data" # persistent volume
把8000也映射下

@Windyhe
Copy link

Windyhe commented Apr 4, 2024

version: '3' services: master: image: zkqiang/crawlab-lite:latest container_name: master ports: - "8080:8080" - "8000:8000" volumes: - "./data:/app/data" # persistent volume 把8000也映射下

如果在部署节点之外的机器上登录,映射8000也没用,会因请求http://localhost:8000/login报错。
前端登录调用了crawlab-ui的request,获取的URL是:

export const getRequestBaseUrl = (): string => {
  return import.meta.env.VITE_APP_API_BASE_URL || 'http://localhost:8000';
};

Ref: https://github.com/crawlab-team/crawlab-ui/blob/main/src/utils/request.ts

@tikazyq
Copy link
Contributor

tikazyq commented Apr 7, 2024

建议转移到 https://github.com/crawlab-team/crawlab 的issue区

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants