-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrailo.sh
More file actions
executable file
·33 lines (27 loc) · 896 Bytes
/
railo.sh
File metadata and controls
executable file
·33 lines (27 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
CURRPATH=$(pwd)
#java -jar ${railoCLIPATH} -webroot=${webroot} -uri=/runner.cfm
PARAMS=""
#Check the first param...
##If param $1 has no length, list commands and list cli-extensions
##If param $1 is run
##If param $1 is start
for var in "$@"
do
PARAMS=${PARAMS}~"$var"
done
cd $(dirname $0)
if [ -n "$1" ]
then
if [ "$1" == "run" ]/Applications/Railo-4-CLI/
then
echo "WE are going to run a file, so we just do the file"
## java -jar ./lib/ext/railo-cli.jar -webroot=./webroot/ -uri='/runner.cfm?currentpath='${CURRPATH}'¶ms='$PARAMS
fi
if [ "$1" == "start" ]
then
echo "WE are going to run a file, so we just do the file"
java -DSTOP.PORT=8887 -DSTOP.KEY=railo -jar -Xms256M -Xmx512M lib/start.jar -Drespath=$CURRPATH
fi
fi
#java -jar ./lib/ext/railo-cli.jar -webroot=./webroot/ -uri='/runner.cfm?currentpath='${CURRPATH}'¶ms='$PARAMS