8000 feat(core): improve dev mode · docker-web/docker-web@a57c345 · GitHub
[go: up one dir, main page]

Skip to content

Commit a57c345

Browse files
author
valere
committed
feat(core): improve dev mode
1 parent cec8f81 commit a57c345

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

src/env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export DOCKERWEB_VERSION="25.2.1"
1+
export DOCKERWEB_VERSION="25.3.1"
22
export GITHUB_DOCKERWEB="https://github.com/docker-web/docker-web"
33
export PATH_DOCKERWEB=/var/docker-web
44
export PATH_DOCKERWEB_APPS=$PATH_DOCKERWEB/apps

src/helpers/dev_mode.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,6 @@ DEV_MODE() {
33
export IS_DEVMODE
44
if [ $IS_DEVMODE ] # if we work/dev from a folder named 'docker-web'
55
then
6-
FOLDERS_TO_EXCLUDE=(.git node_modules)
7-
FILES_TO_EXCLUDE=(config.sh)
8-
for i in *
9-
do
10-
SKIP=""
11-
for j in "${FOLDERS_TO_EXCLUDE[@]}"
12-
do
13-
[ "$i" == "$j" ] && SKIP=1 && break
14-
done
15-
for j in "${FILES_TO_EXCLUDE[@]}"
16-
do
17-
[ "$i" == "$j" ] && SKIP=1 && break
18-
done
19-
[ -z "$SKIP" ] && cp -R "$i" "$PATH_DOCKERWEB/" # we should copy files to app in /var/docker-web
20-
done
6+
rsync -avz --quiet --exclude=".*/" --exclude="node_modules/" --exclude="config.sh" "./" "$PATH_DOCKERWEB/" # we should copy files to app in /var/docker-web
217
fi
228
}

0 commit comments

Comments
 (0)
0