mirror of
https://github.com/theotherp/nzbhydra2.git
synced 2026-02-06 11:17:18 +00:00
22 lines
668 B
Bash
22 lines
668 B
Bash
export PATH=$PATH:/node_modules/.bin
|
|
|
|
# Copy files to the ui-src folder if they don't already exist there. That way the user can bin a volume there and have it filled once
|
|
source="/ui-src/*"
|
|
target="/app/ui-src/"
|
|
if [ ! -d "$target" ] || [ -z "$(ls -A $target)" ]; then
|
|
echo "$target does not exist or is empty - coping files from source to $target"
|
|
mkdir $target
|
|
cp -R $source $target
|
|
else
|
|
echo "$target already exists"
|
|
fi
|
|
|
|
|
|
echo Running gulp watch task
|
|
export STATIC_FOLDER=/app/data/static
|
|
export UI_SRC_FOLDER=/app/ui-src
|
|
|
|
# Build initially
|
|
/app/node_modules/.bin/gulp index > /dev/null 2>&1 &
|
|
# Watch
|
|
/app/node_modules/.bin/gulp default > /dev/null 2>&1 & |