Auszug |
---|
The UM |
...
Kickstarter contains a gradle task to package your project into ZIP files – one for each destination environment. |
Simply run
Codeblock |
---|
gradle dist -Penv=prod |
to create a ZIP file under build/
containing your CSE code and config files for the prod environment.
...
Files or directories not to be included can be listet in .distignore
.
Deploying
To deploy your package to an existing UM installation, stop the running UM and unzip the according ZIP file underneath the server home; e.g.:
Codeblock |
---|
cd /opt/UM
unzip -o ~/project/build/MyProject-prod.zip |
Restart UM.
Info |
---|
Please note, that unzip will overwrite existing files (option Thus, remember which files need to be deleted manually after unzipping or routinely delete the relevant directories:
(Of course, the latter is only useful if you are sure that all files that should be in these directories are also included in the ZIP file.) |