Ability to set FRONTEND_COMMIT when running install_frontend.sh
parent
03342bac37
commit
c10edb4349
|
@ -4,7 +4,14 @@ CURRENT_DIR=$(pwd)
|
|||
# Clone into a temp folder...
|
||||
rm -rf /tmp/farmbot_frontend
|
||||
mkdir /tmp/farmbot_frontend
|
||||
|
||||
git clone https://github.com/farmbot/farmbot-web-frontend.git /tmp/farmbot_frontend
|
||||
|
||||
if [ "$FRONTEND_COMMIT" ]
|
||||
then
|
||||
git reset --hard $FRONTEND_COMMIT
|
||||
fi
|
||||
|
||||
cd /tmp/farmbot_frontend
|
||||
if [ "$NPM_ADDON" ]; then
|
||||
echo "NPM ADD ON DETECTED... INSTALLING"
|
||||
|
@ -19,4 +26,4 @@ cd $CURRENT_DIR
|
|||
# Move it over to the rails /public directory and install deps
|
||||
mkdir public/ -p
|
||||
|
||||
cp -R /tmp/farmbot_frontend/public/* public/
|
||||
cp -R /tmp/farmbot_frontend/public/* public/
|
||||
|
|
Loading…
Reference in New Issue