mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-06-29 16:10:43 +00:00
Fix scripts
This commit is contained in:
parent
d1aff0ec53
commit
cd306cd6c6
2 changed files with 16 additions and 8 deletions
|
@ -1,8 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
BASEDIR="$PWD"
|
||||
OUTPUT_DIR="$BASEDIR/public"
|
||||
STATIC_SRC="$BASEDIR/static/src"
|
||||
STATIC_BUILD="$BASEDIR/static/build"
|
||||
export OUTPUT_DIR="$BASEDIR/public"
|
||||
export STATIC_SRC="$BASEDIR/static/src"
|
||||
export STATIC_BUILD="$BASEDIR/static/build"
|
||||
|
||||
[[ -f "$BASEDIR/.env" ]] && export $(cat "$BASEDIR/.env" | xargs)
|
||||
if [[ -f "$BASEDIR/.env" ]]; then
|
||||
export $(cat "$BASEDIR/.env" | xargs)
|
||||
fi
|
||||
|
||||
NODE_BIN="$BASEDIR/node_modules/.bin"
|
||||
export PATH="$NODE_BIN:$PATH"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue