Appsmith - Linux环境安装

589 阅读1分钟

准备环境:1.安装docker 2.安装mkcert 3.clone代码

创建本地https证书

  1. docker/ 目录中创建2个证书文件:
        cd app/client/docker && mkcert -install && mkcert "*.appsmith.com" && cd ../../..
    
  2. C:/windows:System32/drivers/etc/hosts 添加:
        127.0.0.1 dev.appsmith.com
    
  3. 在appsmith根目录复制文件:
        cp .env.example .env
    
  4. 启用nginx代理。查看nginx状态 (ps -ef | grep nginx):
        cd app/client
        sudo ./start-https.sh http://api服务器
    

启动前端

  1. 安装环境:yarn install
  2. 运行代码:yarn start (将运行在dev.appsmith.com 或 localhost)

启动后端

  1. 进入服务端目录: cd app/server
  2. 复制环境变量: cp envs/docker.env.example envs/docker.env
  3. 启动容器: docker-compose up -d
  4. 启动镜像: appsmith/appsmith-server . Status . Actions

查看镜像启动状态:docker ps


重启之后,只需重复以上分类的最后一步

1. sudo ./start-https.sh http://localhost:8080
2. yarn start
3. appsmith/appsmith-server . Status . Actions