I have a Java console application that I am ready to deploy to a Unix server. I am writing a shell script to run an application.
I plan to put my shell scripts in one folder, my application jar and dependent banks (spring, etc.) in another folder and properties files (those that should be supported live) in a separate folder again. Then I would execute my shell script iterate through the files in the banks and properties folders, adding them to the classpath before finally calling java ...
Is this a βgoodβ deployment structure? Are there any recommendations for organizing files for maximum support and stability? Are there obvious βwrongβ ways to do this that are best avoided?
I must add that for the previous project I put all shell scripts (those that run Java processes, and those that do not have them) in the scripts folder - the jar application in the library banks folder in the library subfolder and external resources in the config subfolder . Then I wrote a script that explicitly downloads all the files. It has been written for a long time and needs to be supported when I update the library jar. This time I would like to do it better. In addition, there is no need to separate JAR applications from libraries.
source share