19 lines
439 B
Bash
Executable File
19 lines
439 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function start_release() {
|
|
echo "Starting backend in RELEASE mode"
|
|
sass --watch web/style/:web/style -tcompressed &
|
|
webdev serve --release --hostname 0.0.0.0
|
|
}
|
|
|
|
function start_debug() {
|
|
echo "Starting backend in DEBUG mode"
|
|
sass --watch web/style/:web/style -tcompressed &
|
|
webdev serve --hostname 0.0.0.0
|
|
}
|
|
|
|
echo Relase: $RELEASE
|
|
[ "$RELEASE" == "release" ] \
|
|
&& start_release \
|
|
|| start_debug
|