Go to file
王昆 d41c787430 [!] build fix 2022-12-08 11:12:40 +08:00
.github Merge remote-tracking branch 'mirror/master' 2022-11-29 14:49:56 +08:00
app [!] build fix 2022-12-08 11:12:40 +08:00
cloudos_deploy [+] nginx for saas deploy, saas support miniapp 2022-05-06 20:46:42 +08:00
contributions chore: import common variables from design system (#17600) 2022-10-31 06:54:47 +05:30
deploy [!] build fix 2022-12-08 11:12:40 +08:00
scripts fix: update local_testing.sh to build image for external contributor PRs (#18024) 2022-11-16 05:41:05 +05:30
static Update readme: content, links, structural changes (#15926) 2022-08-12 13:07:28 +05:30
.deepsource.toml Create .deepsource.toml (#3593) 2021-03-19 11:40:59 +05:30
.dockerignore [!] merge bug fix 2022-09-02 19:02:04 +08:00
.env.example [!] build fix 2022-12-08 11:12:40 +08:00
.gitignore feat: echarts 2022-11-29 15:20:56 +08:00
.imgbotconfig Added imgbot config file (#1655) 2020-11-09 17:52:53 +05:30
.nojekyll Add a nojekyll file for helm charts to work 2021-11-26 14:04:22 +05:30
CODE_OF_CONDUCT.md Readme (#11) 2020-07-01 16:42:41 +05:30
CONTRIBUTING.md fix: Fixed the broken links in CONTRIBUTING.md (#8815) 2021-10-26 15:26:02 +05:30
Dockerfile [!] build config 2022-11-07 16:15:16 +08:00
IssuesReport.md Feature/hacktoberfest (#841) 2020-09-30 23:23:10 +05:30
LICENSE Update LICENSE 2021-05-27 12:53:55 +05:30
README.md [!] build fix 2022-12-08 11:12:40 +08:00
SECURITY.md docs: Updated appsmith_events.md and SECURITY.md (#8921) 2021-11-12 13:42:41 +05:30
app.json Remove postdeploy script in app.json for heroku (#12907) 2022-04-14 09:57:14 +05:30
appsmith-1.3.0.tgz ci: Publish Appsmith helm chart (#9540) 2021-12-03 01:58:08 +05:30
appsmith_events.md docs: Updated appsmith_events.md and SECURITY.md (#8921) 2021-11-12 13:42:41 +05:30
appsmith_templates.md feat: migrate from org to workspace under phase 3 (#14158) 2022-07-20 17:24:16 +05:30
coverage-summary.json refactor: deprecate commenting and notifications (#15484) 2022-08-03 12:32:49 +05:30
depot.json ci: Fixing the RTS build workflow (#16748) 2022-09-14 14:24:20 +05:30
heroku.yml Heroku Button implementation (#1721) 2020-11-18 18:53:59 +05:30
index.yaml ci: Publish Appsmith helm chart (#9540) 2021-12-03 01:58:08 +05:30
install.sh [!] install.sh, fixed template files, optimized editor 2022-03-23 20:14:10 +08:00
list Table UI test cases (#5910) 2021-08-21 12:34:23 +05:00

README.md

前端低代码工具base on AppSmith-v1.7.3

🎈 启动项目windows

非 windows

// 配置 host
127.0.0.1 dev.appsmith.com

// 环境变量
cp .env.example .env

// 启动本地 nginx docker
cd app/client
yarn start-proxy

// 启动前端服务
yarn
yarn start-win ( yarn start-cloudos )

服务端指南

// .env 环境变量,开发测试 mongo、redis 地址
APPSMITH_MONGODB_URI="mongodb://10.10.13.50:27017/appsmith"
APPSMITH_REDIS_URL="redis://10.10.13.50:63799"

// 使用 IDEA 打开工程
app/server

// 构建 java 服务
mvn clean compile (有依赖更新时执行)
bash ./build.sh -DskipTests

// 启动 java 服务
bash ./scripts/start-dev-server.sh

💕 合并 GitHub 更新

// 外网代理
export https_proxy=http://127.0.0.1:3083
export http_proxy=http://127.0.0.1:3083

// 添加 GitHub 远程仓库,定期同步
git remote add mirror https://github.com/appsmithorg/appsmith.git
git fetch mirror master
git checkout master
git merge mirror/master
git push origin master

📦 打包发布

// 前端打包
cd app/client
yarn build-win ( yarn build-cloudos )
docker build -t pageplug-client:demo .
docker tag pageplug-client:demo harbor.cloud2go.cn/cloud2go/pageplug-client:demo
docker push harbor.cloud2go.cn/cloud2go/pageplug-client:demo

// 后端打包
cd app/server
bash ./build.sh -DskipTests
docker build -t pageplug-server:demo .
docker tag pageplug-server:demo harbor.cloud2go.cn/cloud2go/pageplug-server:demo
docker push harbor.cloud2go.cn/cloud2go/pageplug-server:demo

// 重启服务
登录到安装目录下 docker-compose 修改镜像
docker-compose down
docker-compose up -d

[cloudtogo外网版本]
// 部署在 k8s 上,由乙麟帮忙管理
docker-registry-idc01-sz.cloudtogo.cn/pageplug-client:cloudtogo
docker-registry-idc01-sz.cloudtogo.cn/pageplug-server:cloudtogo

🌱 系统安装脚本

install.sh

// 脚本里替换默认镜像地址,安装完成后按需修改项目目录里的 docker-compose.yml 即可
sed -i 's/index\.docker\.io\/appsmith\/appsmith-editor/harbor\.cloud2go\.cn\/cloud2go\/pageplug-client:demo/g' docker-compose.yml.sh
sed -i 's/index\.docker\.io\/appsmith\/appsmith-server/harbor\.cloud2go\.cn\/cloud2go\/pageplug-server:demo/g' docker-compose.yml.sh

🌼 小程序环境变量

// 小程序 ID、密钥用于获取小程序码
CLOUDOS_WECHAT_APPID="wx414ad0dbeda1a70b"
CLOUDOS_WECHAT_SECRET="d5289fd08b1fb31290f66ea2ce5ec7dc"

🔔 StarOS 版本注意

// StarOS 版本环境变量
// 同步春景 API 列表
CLOUDOS_API_BASE_URL="http://10.10.11.20:8035"
// MOCK API 调用
CLOUDOS_MOCK_BASE_URL="http://10.10.11.20:8899"
// 启动开关
CLOUDOS_IN_CLOUDOS=true

// nginx.conf 配置前端环境变量,替换 index.html 中的配置
sub_filter __PAGEPLUG_CLOUDOS_LOGIN_URL__ 'http://factory.dev.staros.local/user/login';
sub_filter __APPSMITH_BMAP_AK__ 'nWCpSjRnXLfGuBc3iLZ9kYv8Y6wYaxf8';
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
StarOS 版本使用固定用户
在开启 inCloudOS 前需要
预先创建该账号

账号admin@cloudtogo.cn
密码admin123当前部署密码
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨