准备环境:1.安装docker 2.安装mkcert 3.clone代码
创建本地https证书
- 在 docker/ 目录中创建2个证书文件:
cd app/client/docker && mkcert -install && mkcert "*.appsmith.com" && cd ../../.. - C:/windows:System32/drivers/etc/hosts 添加:
127.0.0.1 dev.appsmith.com - 在appsmith根目录复制文件:
cp .env.example .env - 启用nginx代理。查看nginx状态 (ps -ef | grep nginx):
cd app/client sudo ./start-https.sh http://api服务器
启动前端
- 安装环境:
yarn install - 运行代码:
yarn start(将运行在dev.appsmith.com 或 localhost)
启动后端
- 进入服务端目录:
cd app/server - 复制环境变量:
cp envs/docker.env.example envs/docker.env - 启动容器:
docker-compose up -d - 启动镜像: appsmith/appsmith-server . Status . Actions
查看镜像启动状态:docker ps
重启之后,只需重复以上分类的最后一步
1. sudo ./start-https.sh http://localhost:8080
2. yarn start
3. appsmith/appsmith-server . Status . Actions