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.
khufu/dist/predeploy-vanilla.sh

17 lines
393 B
Bash
Raw Normal View History

2021-08-23 20:30:42 -06:00
#!/bin/bash
echo "Creating vanilla predeploy!"
# Set path correclty
2021-08-23 20:33:50 -06:00
if [[ $PWD == *"dist" ]];
2021-08-23 20:30:42 -06:00
then cd ..
fi
# If .env exists, ignore it
2021-08-23 20:31:45 -06:00
if [[ ! -f ".env" ]];then
echo "Building vanilla env file!"
2021-08-23 20:30:42 -06:00
echo "PORT=52026
NUBIAN_INTERNAL_URL=\${NUBIAN_INTERNAL_URL}
2021-08-23 20:31:45 -06:00
REACT_APP_CAIRO_PUBLIC_URL=\${CAIRO_PUBLIC_URL}" >> .env
2021-08-23 20:30:42 -06:00
fi
# Install node dependencies
echo "Installing node depencencies!"
npm i