ibm mobilefirst - How to change the War file for same project in a Bluemix -


i migrating mobile first server bluemix, facing 1 issue:

whenever try change war file same project,every time have create new container , upload new image that.

i running script:

initenv.properties

prepareserverdbs.properties

prepareserver.properties

startserver.properties

and in startserver.sh , getting error container same exists if using same container change war file.

any advice on how update war file same project?

the error see because old container same name still running. needs recreated.

the project (.war file) on mobilefirst platform 7.1 artifact goes container. recreating image required.

if there changes project war file, have replace .war in ./usr/projects directory (or if using project_loc variable in args/prepareserver.properties, make sure points latest project directory) , run following:

  1. recreate docker image new .war file: prepareserver.sh
  2. stop , delete running container: cf ic stop your-container-name , cf ic rm your-container-name. (verify old container deleted using command: cf ic ps -a)
  3. start new mobilefirst container updated image: startserver.sh

step 2 above should fix error see.


Comments

Popular posts from this blog

loops - Spock: How to use test data with @Stepwise -

amazon web services - S3 Pre-signed POST validate file type? -