Appsmith - Windows环境安装

409 阅读1分钟
  1. C:/windows:System32/drivers/etc/hosts 添加: 127.0.0.1 dev.appsmith.com

  2. app/client/package.json 文件中修改,注意(set xx=yy&&前不能有空格):

    {
      ...
      "scripts": {
        "start": "set BROWSER=none&& set EXTEND_ESLINT=true&& set REACT_APP_ENVIRONMENT=DEVELOPMENT&& set REACT_APP_CLIENT_LOG_LEVEL=debug&& set HOST=dev.appsmith.com&& craco start",
        "postinstall": "patch-package && CURRENT_SCOPE=client node ../shared/install-dependencies.js",
        "preinstall": "CURRENT_SCOPE=client node ../shared/build-shared-dep.js",
      }
    }
    
  3. app/shared/ast 连接link,可能需要重启vscode

    1. yarn install # if you unzip the node_modules folder and skip the step
    2. yarn start
    3. cd build
    4. cp -R ../node_modules ./node_modules
    5. yarn link
  4. app/client 安装和link

    1. yarn link "@shared/ast"
    2. yarn install
    3. yarn start