This repository has been archived on 2023-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-05 12:49:26 +00:00
|
|
|
#!/bin/bash
|
2020-05-05 13:10:55 +00:00
|
|
|
|
|
|
|
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
|