Built vanilla predeploy script

This commit is contained in:
Dunemask 2021-08-23 20:30:42 -06:00
parent 236af73bb5
commit dbcd368855
2 changed files with 22 additions and 0 deletions

3
.aenv Normal file
View file

@ -0,0 +1,3 @@
PORT=52026
NUBIAN_INTERNAL_URL=${NUBIAN_INTERNAL_URL}
REACT_APP_CAIRO_PUBLIC_URL=${CAIRO_PUBLIC_URL}

19
dist/predeploy-vanilla.sh vendored Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
echo "Creating vanilla predeploy!"
# Set path correclty
if [[ $PWD == *"dist"* ]];
then cd ..
fi
# If .env exists, ignore it
if [[ ! -f ".aenv" ]];then
echo "PORT=52026
NUBIAN_INTERNAL_URL=\${NUBIAN_INTERNAL_URL}
REACT_APP_CAIRO_PUBLIC_URL=\${CAIRO_PUBLIC_URL}" >> .aenv
fi
# Install node dependencies
echo "Installing node depencencies!"
npm i
echo "Building JS Bundle!"
npm run build:react
echo "Building docker image"
docker-compose build