run.sh 354 Bytes
Newer Older
cazenave's avatar
cazenave committed
1
2
3
4
5
6
7
8
9
#!/bin/bash

mkdir -p target/src/main
rm -rf target/src/main/config
cp -r src/main/config target/src/main/config

#retrieve version
version="$(grep -oP '(?<=>).*?(?=</version>)' pom.xml | grep -v 'version')"

cazenave's avatar
cazenave committed
10
./target/ui-pastis-$(echo $version).war -Xms128m -Xmx512m --spring.config.additional-location=file:src/main/config/ui-pastis-application-dev.yml