Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
0e8163e5
Commit
0e8163e5
authored
Apr 30, 2017
by
张乐
Committed by
GitHub
Apr 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #608 from nobodyiam/rename-apollo-profile
rename default profile from 'dev' to 'github' to avoid confusion
parents
b9fca2d9
17b05bd3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
adminservice.properties
...o-adminservice/src/main/resources/adminservice.properties
+1
-0
application-github.properties
...o-common/src/main/resources/application-github.properties
+0
-0
configservice.properties
...configservice/src/main/resources/configservice.properties
+1
-0
pom.xml
pom.xml
+6
-3
build.sh
scripts/build.sh
+2
-2
No files found.
apollo-adminservice/src/main/resources/adminservice.properties
View file @
0e8163e5
#Used for apollo-assembly
spring.application.name
=
apollo-adminservice
ctrip.appid
=
100003172
server.port
=
8090
...
...
apollo-common/src/main/resources/application-
dev
.properties
→
apollo-common/src/main/resources/application-
github
.properties
View file @
0e8163e5
File moved
apollo-configservice/src/main/resources/configservice.properties
View file @
0e8163e5
#Used for apollo-assembly
spring.application.name
=
apollo-configservice
ctrip.appid
=
100003171
server.port
=
8080
...
...
pom.xml
View file @
0e8163e5
...
...
@@ -586,9 +586,9 @@
</profile>
<profile>
<!-- for open source usage -->
<id>
dev
</id>
<id>
github
</id>
<properties>
<package.environment>
dev
</package.environment>
<package.environment>
github
</package.environment>
</properties>
<activation>
<activeByDefault>
true
</activeByDefault>
...
...
@@ -598,7 +598,7 @@
<!-- for ctrip development -->
<id>
ctrip-dev
</id>
<properties>
<package.environment>
dev
</package.environment>
<package.environment>
ctrip
</package.environment>
</properties>
<dependencyManagement>
<dependencies>
...
...
@@ -703,6 +703,9 @@
<profile>
<!-- for ctrip production -->
<id>
ctrip
</id>
<properties>
<package.environment>
ctrip
</package.environment>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
...
...
scripts/build.sh
View file @
0e8163e5
...
...
@@ -24,13 +24,13 @@ cd ..
# package config-service and admin-service
echo
"==== starting to build config-service and admin-service ===="
mvn clean package
-DskipTests
-pl
apollo-configservice,apollo-adminservice
-am
-Dapollo_profile
=
dev
-Dspring_datasource_url
=
$apollo_config_db_url
-Dspring_datasource_username
=
$apollo_config_db_username
-Dspring_datasource_password
=
$apollo_config_db_password
mvn clean package
-DskipTests
-pl
apollo-configservice,apollo-adminservice
-am
-Dapollo_profile
=
github
-Dspring_datasource_url
=
$apollo_config_db_url
-Dspring_datasource_username
=
$apollo_config_db_username
-Dspring_datasource_password
=
$apollo_config_db_password
echo
"==== building config-service and admin-service finished ===="
echo
"==== starting to build portal ===="
mvn clean package
-DskipTests
-pl
apollo-portal
-am
-Dapollo_profile
=
dev
-Dspring_datasource_url
=
$apollo_portal_db_url
-Dspring_datasource_username
=
$apollo_portal_db_username
-Dspring_datasource_password
=
$apollo_portal_db_password
$META_SERVERS_OPTS
mvn clean package
-DskipTests
-pl
apollo-portal
-am
-Dapollo_profile
=
github
-Dspring_datasource_url
=
$apollo_portal_db_url
-Dspring_datasource_username
=
$apollo_portal_db_username
-Dspring_datasource_password
=
$apollo_portal_db_password
$META_SERVERS_OPTS
echo
"==== building portal finished ===="
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment