Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploying 2 different environment

 
ihsan kocak
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all, i have 2 environments:prp and stb.i have a project i deploy it into these 2 environments.but for each environment i should do some changes in a java file(userbean.java) .moreover, weblogic.xml and web.xml files of prp is different than stb environment.
i dont want to change these files for every time i deploy into different environments.

is there any method to prevent chnging xml files while deploying into different environment?
Best Regards.
 
Sudhir Ravindra
Greenhorn
Posts: 16
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you build with maven, you can setup deployment property file based configuration file filtering.
Described in http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-description.html
Could be possible in other build tools as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic