This repository has been archived on 2024-08-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
nubian/dist/predeploy-vanilla.sh

17 lines
370 B
Bash
Raw Normal View History

2021-08-23 20:36:51 -06:00
#!/bin/bash
echo "Creating vanilla predeploy!"
# Set path correclty
if [[ $PWD == *"dist" ]];
then cd ..
fi
2021-08-23 21:02:12 -06:00
# If .env exists, ignore it
if [[ ! -f ".env" ]];then
echo "Building vanilla env file!"
echo "KHUFU_UPLOAD_PATH=/srv/uploads">> .env
fi
2021-08-23 20:36:51 -06:00
# Install node dependencies
echo "Installing node depencencies!"
npm i
2021-08-23 21:02:12 -06:00
echo "Building docker image"
docker-compose build