https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz
-
git clone https://github.com/moqui/moqui-framework.git
-
cd moqui-framwork
-
gradlew getComponentSet -PcomponentSet=demo
-
gradlew downloadElasticSearch
-
Install elasticsearch-analysis-ik-7.10.2.0
b) mkdir moqui-framework/runtime/elasticsearch/plugins
c) unzip elasticsearch-analysis-ik-7.10.2.zip -d elasticsearch-analysis-ik-7.10.2
d) mv elasticsearch-analysis-ik-7.10.2 moqui-framework/runtime/elasticsearch/plugins
-
Create elasticsearch user
-
Add
if("text".equals(mappingType)) { propertyMap.put("analyzer", "ik_max_word") propertyMap.put("search_analyzer", "ik_max_word") }
to line 822 in moqui-framework/framework/src/main/groovy/org/moqui/impl/context/ElasticFacadeImpl.groovy
-
gradlew run
- cd moqui-framework/runtime/component
- git clone https://github.com/zhangwei1979/moqui-zapps.git
- git clone https://github.com/zhangwei1979/wesys.git
- git clone https://github.com/zhangwei1979/moqui-login.git
- git clone https://github.com/shendepu/moqui-captcha.git
- gradlew load
- gradlew run
- Open http://localhost:8080/zapps
Create elasticsearch user for Linux
- adduser elasticsearch
- passwd elasticsearch
- chown -R elasticsearch:elasticsearch moqui-framework/runtime/elasticsearch
- edit moqui-framework/runtime/elasticsearch/config/jvm.options and set Xms and Xmx
- su elasticsearch
- ./elasticsearch -d
Install kibana https://artifacts.elastic.co/downloads/kibana/kibana-oss-7.10.2-darwin-x86_64.tar.gz
#Deployment in Docker
- apt install unzip
- Install JDK
- git clone https://github.com/moqui/moqui-framework.git
- cd moqui-framework
- ./gradlew getRuntime
- ./gradlew getComponent -Pcomponent=PopCommerce
- ./gradlew getComponent -Pcomponent=moqui-hazelcast
- ./gradlew getComponent -Pcomponent=example
- ./gradlew getComponent -Pcomponent=moqui-zh_CN-addon
- ./gradlew downloadElasticsearch
- git clone https://github.com/zhangwei1979/wesys.git
- git clone https://github.com/zhangwei1979/moqui-zapps.git
- git clone https://github.com/zhangwei1979/moqui-login.git
- git clone https://github.com/shendepu/moqui-captcha.git
- groupadd -r elasticsearch
- useradd --no-log-init -r -d /opt/moqui-framework/runtime/elasticsearch -g elasticsearch elasticsearch
- chown -R elasticsearch:elasticsearch /opt/moqui-framework/runtime/elasticsearch
- ./gradlew addRuntime
- ./docker/simple/docker-build.sh