Built vanilla predeploy script
This commit is contained in:
parent
236af73bb5
commit
dbcd368855
2 changed files with 22 additions and 0 deletions
19
dist/predeploy-vanilla.sh
vendored
Executable file
19
dist/predeploy-vanilla.sh
vendored
Executable 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
|
Reference in a new issue