Skip to content

Commit

Permalink
rename default profile from 'dev' to 'github' to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodyiam committed Apr 30, 2017
1 parent bd1832b commit 17b05bd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Used for apollo-assembly
spring.application.name= apollo-adminservice
ctrip.appid= 100003172
server.port= 8090
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Used for apollo-assembly
spring.application.name= apollo-configservice
ctrip.appid= 100003171
server.port= 8080
Expand Down
9 changes: 6 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -703,6 +703,9 @@
<profile>
<!-- for ctrip production -->
<id>ctrip</id>
<properties>
<package.environment>ctrip</package.environment>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ===="

Expand Down

0 comments on commit 17b05bd

Please sign in to comment.