Home Contact About eShop Products Tutorials Download News Blog |
|
|
Public Posts
Total:10
Ioannis Xanthopoulos
How to automate the deployment of a collection of scripts using Ixanos
Public Post
about 3 years
How to automate the deployment of a collection of scripts using Ixanos Nowadays, many applications consist of several discrete files that need to be modified to fit to the environment of deployment. This means that several strings within these files need to be changed. These can be absolute locations (directories) or volumes or application names or connection strings etc. To deploy such an application on different environments can be a critical task and may require a person with application knowledge to guarantee success. Ixanos, is targeting this difficulty by storing a meta-file describing all the actions that need to take place. Further on, it can execute this meta-file and deploy the application on any environment automatically. This guarantees successful deployment every time and without the need of an expert.
All these tasks have strong dependencies on the location of the required applications and will cause plenty of problems when porting them on a different environment. Reason being the fact that nobody guarantees that in the new environment the location of the ant.exe or java.exe or javac.exe or javaDoc, or obfuscator or … will be in the same location. This means that you would have to go and change all these locations in all the files involved in the above process. As you understand, this is not a simple task. Using Ixanos it can be the click of a button only! For the above example we would do the following steps: a. Check all parameters in all involved files that need to be changed when going to an arbitrary different environment. For example, if you find in one of your scripts the following: b. Decide upon a directory where you wish to copy the prepared scripts to. Our suggestion is to concentrate them in a single tree structure: ![]() c. Use the Ixanos wizard to create the meta-file. d. Build the application and test the process The meta-file is basically a text file in XML-format. We directly present it, as we believe that this way we facilitate the learning procedure: ![]() The meta file above is sufficient for Ixanos to deploy this application. It contains the following information: a. The root directory where the application will be deployed ( b. To copy all files from the directory c. To copy all files from the directory d. To copy the file e. To copy the file f. Then it tells Ixanos that all files directly under the directory g. It also tells Ixanos that all files directly under the directory h. It also tells Ixanos that the file i. It also tells Ixanos that wherever a bind variable is found (ie: something in the form ![]() When this is in place you can run the meta-file (use this button ![]() And Second is: ![]() If you open each file you can see that the corresponding bind variables have been replaced by Ixanos. To summarize, in case you wish to deploy the above meta-file on any other environment you only need to change the bind variables to reflect the directories of the new environment and hit on execute to generate the new build files. That’s it. Note that you only change the directories in a single file, namely, the Ixanos meta-file. The ixanos.com team. [ My Dashboard ] [ Home ] |
Ixanos is shipped within 24 hours and comes with free upgrades for 2 years. |
Home| Contact| About| eShop| Products| Tutorials| Download| News| Blog All Right Reserved © 2000-2021 by Ixanos. |