Setup KHUFU_UPLOAD_PATH

This commit is contained in:
Dunemask 2021-08-23 21:02:12 -06:00
parent 7c5a6dd326
commit 2cf99f5577
5 changed files with 21 additions and 9 deletions

View file

@ -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