forked from ansible/galaxy_ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: if DEV_SOURCE_PATH is undefined run without reloader.
- If DEV_SOURCE_PATH is not defined run without reloader to save resources - Fixed reloader to actually take the changes, it was missing `/app` mount point - Added troubleshooting section to README
- Loading branch information
1 parent
07508a3
commit a3f44ac
Showing
4 changed files
with
62 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# List all files in the DEV_SOURCE_PATH and watch for changes and use entr to SIGKILL + restart | ||
echo "Watching file changes on $DEV_SOURCE_PATH" | ||
|
||
find $(echo $DEV_SOURCE_PATH | tr ':' '\n' | while read item; do echo -n /src/$item\ ; done) \( -path /src/galaxy_ng/.venv -o -path /src/galaxy_ng/build -o -path /src/galaxy_ng/.eggs \) -prune -o -name '*.py' -o -name '*.yaml' | /src/galaxy_ng/dev/compose/bin/entr -n -r timeout -k 5 0 $1 | ||
if [ -z "${DEV_SOURCE_PATH}" ]; then | ||
echo "DEV_SOURCE_PATH is not defined, running without reload." | ||
$1 | ||
else | ||
# List all files in the DEV_SOURCE_PATH and watch for changes and use entr to SIGKILL + restart | ||
echo "Watching file changes on $DEV_SOURCE_PATH" | ||
find $(echo $DEV_SOURCE_PATH | tr ':' '\n' | while read item; do echo -n /src/$item\ ; done) \( -path /src/galaxy_ng/.venv -o -path /src/galaxy_ng/build -o -path /src/galaxy_ng/.eggs \) -prune -o -name '*.py' -o -name '*.yaml' | /src/galaxy_ng/dev/compose/bin/entr -n -r timeout -k 5 0 $1 | ||
fi |