commit | 21ba191aa84760981195354ce2c650730c11013f | [log] [tgz] |
---|---|---|
author | 马金凯 <majk@vip.qq.com> | Wed Oct 24 15:47:04 2018 +0800 |
committer | min <z82507200@gmail.com> | Wed Oct 24 15:47:04 2018 +0800 |
tree | 381dc06b586c0948369743b49182403364477ab7 | |
parent | c2e4a0b9dd643879cd56f2ec2afaf844be5c2aa7 [diff] |
Move doc images to doc folder (#161)
application.properties
The generic configuration, shared byapplication-develop.properties
andapplication-production.properties
application-production.properties
(default)
The configuration for productionapplication-develop.properties
The configuration for develop
Clone source code on develop branch
Specify registry address in dubbo-admin-backend/src/resources/application-production.properties
Build
mvn clean package -Pproduction
will active production configuration(application-production.properties
)mvn clean package -Ddevelop
will active develop configuration(application-develop.properties
)
Start mvn --projects dubbo-admin-backend spring-boot:run
Visit http://localhost:8080
Configuration in IDE
Select configuration files in Intellij Idea
Choose profile file during project importing
Choose profile file in the Maven Projects tool window to activate profiles.
Select configuration files in Eclipse
dubbo-admin-backend
Run backend project
backend is a standard spring boot project, you can run it in any java IDE
Run frontend project
run with npm run dev
visit webpage visit localhost://localhost:8081
, frontend support hot reload.
CORS problem in this development mode, frontend will request localhost:8080
to fetch data, this will cause a CORS problem, so we add a configuration in I18nConfig.java
to support CORS, this configuration will only be active under develop mode, please select the right maven profile to support this.
Apache Dubbo ops is under the Apache 2.0 license, Version 2.0. See LICENSE for full license text.