Commit 71f067fa authored by Misagh Moayyed's avatar Misagh Moayyed

updated build

parent 9cf3e1cc
......@@ -18,7 +18,7 @@ The `etc` directory contains the configuration files and directories that need t
# Build
```bash
./mvnw[.bat] clean package
./build.sh package
```
# Deployment
......@@ -31,7 +31,7 @@ The `etc` directory contains the configuration files and directories that need t
Then, run:
```bash
java -jar target/cas.war
./build.sh run
```
CAS will be available at:
......@@ -39,14 +39,6 @@ CAS will be available at:
* `http://cas.server.name:8080/cas`
* `https://cas.server.name:8443/cas`
### Remote Debugging
To configure remote debugging for the embedded Tomcat instance, execute:
```bash
./mvnw[.bat] clean package && java -Xdebug -Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n -jar target/cas.war
```
## External
Deploy resultant `target/cas.war` to a servlet container of choice.
#!/bin/bash
echo -e "Creating configuration directory under /etc/cas"
mkdir -p /etc/cas/config
echo -e "Copying configuration files"
cp -rfv etc/cas /etc/cas
function help() {
echo "Usage: build.sh [clean|package|install|run]"
}
function clean() {
./mvnw clean
}
function package() {
./mvnw clean package -T 5
}
function install() {
./mvnw clean package install -T 5
}
function clean() {
./mvnw clean
}
function run() {
install && java -Xdebug -Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n -jar target/cas.war
}
if [ $# -eq 0 ]; then
echo -e "No commands provided. Defaulting to [run]\n"
run
exit 0
fi
for var in "$@"
do
case "$var" in
"clean")
clean
;;
"package")
package
;;
"install")
install
;;
"run")
run
;;
*)
help
;;
esac
done
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment