Saturday, 28 May 2011

sMash: Deployment instructions to update existing application deployed on server

If you have a WebSphere sMash application deployed on a server e.g. production or staging, and you need to replace the deployed version with a newer one e.g. after solving some defects, then you need to follow those steps:

  1. Open Rational Application Developer/Eclipse 
  2. Open project folder & then open ivy.xml
  3. Increment the revision number e.g. from 1.0.0 to 1.0.1 (for more major changes, you can change to 1.1.0 and so on)
  4. Save
  5. Open command line window and set zero environment properly
  6. Go to the project directory under Eclipse workspace
  7. Invoke the command "zero package" & a zip file will be generated under the export directory
  8. FTP the file to the target server e.g. to /home/fadela/export
  9. Login to target server
  10. Set the zero environment on staging server for your own account (check how below)
  11. invoke the command "zero publish", for example:
    • zero publish -f=/home/fadel/export/<project_module>-1.0.1.zip
  12. Finally run the command "zero update". This forces the sMash to reference the new version you just deployed instead of the existing one.
  13. Issue command zero stop followed by zero start to recycle the application for new changes to take effect.

Update revision number

No comments:

Post a Comment