mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-29 17:37:52 +01:00
Initial build environment stuff
This commit is contained in:
1 parent
458f9daf4e
commit
254c5c7add
10 files changed
+276
-47
No files matched your search
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo /usr/local/bin/docker-compose run --no-deps --rm app npm run-script build
|
||||
exit $?
|
||||
@@ -1,20 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
if hash realpath 2>/dev/null; then
|
||||
export CODEBASE=$(realpath $SCRIPT_DIR/..)
|
||||
elif hash grealpath 2>/dev/null; then
|
||||
export CODEBASE=$(grealpath $SCRIPT_DIR/..)
|
||||
else
|
||||
export CODEBASE=$(readlink -e $SCRIPT_DIR/..)
|
||||
fi
|
||||
|
||||
if [ -z "$CODEBASE" ]; then
|
||||
echo "Unable to determine absolute codebase directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$CODEBASE"
|
||||
|
||||
/usr/local/bin/docker-compose run --no-deps --rm -w /srv/manager app npm $@
|
||||
sudo /usr/local/bin/docker-compose run --no-deps --rm app npm $@
|
||||
exit $?
|
||||
@@ -1,20 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
if hash realpath 2>/dev/null; then
|
||||
export CODEBASE=$(realpath $SCRIPT_DIR/..)
|
||||
elif hash grealpath 2>/dev/null; then
|
||||
export CODEBASE=$(grealpath $SCRIPT_DIR/..)
|
||||
else
|
||||
export CODEBASE=$(readlink -e $SCRIPT_DIR/..)
|
||||
fi
|
||||
|
||||
if [ -z "$CODEBASE" ]; then
|
||||
echo "Unable to determine absolute codebase directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$CODEBASE"
|
||||
|
||||
/usr/local/bin/docker-compose run --no-deps --rm -w /srv/manager app yarn $@
|
||||
sudo /usr/local/bin/docker-compose run --no-deps --rm app yarn $@
|
||||
exit $?
|
||||
Reference in new issue
Block a user