Setup KHUFU_UPLOAD_PATH
This commit is contained in:
parent
7c5a6dd326
commit
2cf99f5577
5 changed files with 21 additions and 9 deletions
11
dist/predeploy-vanilla.sh
vendored
11
dist/predeploy-vanilla.sh
vendored
|
@ -4,8 +4,15 @@ echo "Creating vanilla predeploy!"
|
|||
if [[ $PWD == *"dist" ]];
|
||||
then cd ..
|
||||
fi
|
||||
# If .env exists, ignore it
|
||||
if [[ ! -f ".env" ]];then
|
||||
echo "Building vanilla env file!"
|
||||
echo "KHUFU_UPLOAD_PATH=/srv/uploads">> .env
|
||||
fi
|
||||
# Install node dependencies
|
||||
echo "Installing node depencencies!"
|
||||
npm i
|
||||
echo "Building Docker Image!"
|
||||
npm run build:all
|
||||
echo "Building JS Bundle!"
|
||||
npm run build:react
|
||||
echo "Building docker image"
|
||||
docker-compose build
|
||||
|
|
Reference in a new issue