Skip to content

Instantly share code, notes, and snippets.

@MarshalW
Last active April 11, 2022 08:41
Show Gist options
  • Save MarshalW/aea1d6fe83b3587ee634bd5ef7f528f8 to your computer and use it in GitHub Desktop.
Save MarshalW/aea1d6fe83b3587ee634bd5ef7f528f8 to your computer and use it in GitHub Desktop.
jnpf deploy

jnpf deploy

解压缩文件,目录结构:

$ cd dist
$  tree . -a
.
├── .env
├── db
│   ├── .DS_Store
│   ├── 3.0.6
│   │   ├── base_module.sql
│   │   ├── base_module.utf.sql
│   │   ├── flow_engine.sql
│   │   └── �\233��\226��\206\205容.txt
│   ├── 3.0.7
│   │   ├── base_module.sql
│   │   ├── base_modulebutton.sql
│   │   ├── base_modulecolumn.sql
│   │   └── �\233��\226��\206\205容.txt
│   ├── 3.0.8
│   │   ├── java_update.sql
│   │   └── �\233��\226��\206\205容.txt
│   ├── change_password.sql
│   ├── jnpf_init.sql
│   └── jnpf_tenant.sql
├── docker-compose.yml
├── jnpf-java.tar
└── jnpf-vue.tar

4 directories, 16 files

其中:

  • jnpf-java.tar,是 jnpf-java的docker image
  • jnpf-vue.tar,是 jnpf-vue的docker image

将二者加载到本地docker库中:

$ docker load -i jnpf-java.tar
$ docker load -i jnpf-vue.tar

查看 .env 文件,可调整初始登录账号密码等:

VUE_APP_BASE_API=http://localhost:7772
VUE_APP_BASE_WSS=wss://localhost:7772

MYSQL_DATABASE=jnpf_demo

LOGIN_USER_NAME=admin
LOGIN_PASSWORD=dongao2022

启动服务(在dist目录下):

$ docker-compose up -d

第一次会下载所需的基础镜像。

启动结束后进入会进入后台,关闭命令为:

$ docker-compose down

启动完毕后,可访问:http://localhost:3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment