From a038c449e7879f3e2c503f404444b48970996f39 Mon Sep 17 00:00:00 2001 From: Me Date: Fri, 28 Jul 2023 15:47:57 -0600 Subject: [PATCH] update media directory --- Client/node_modules - Shortcut.lnk | Bin 1154 -> 0 bytes drone.yml | 2 +- git-post-receive | 77 ----------------------------- 3 files changed, 1 insertion(+), 78 deletions(-) delete mode 100644 Client/node_modules - Shortcut.lnk delete mode 100644 git-post-receive diff --git a/Client/node_modules - Shortcut.lnk b/Client/node_modules - Shortcut.lnk deleted file mode 100644 index 75bef40b3e795ef0275e928f1f4bab3eec7473f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1154 zcmbVLUr1A76#rd|n58ypsY&UGG))|uf;gHOTRJLrU{=tDsoR|{-L84J{(<2`MWJG9 zQV$vtOF;_>i=aq-=_PuQ)X1KUp8Qiof~*kgoV%qNNYH`b`M!J3`F`ho=Y01l06`Z) z8W>YGidvw7miFoM7j`^fm=p#El5ULsoD$kEhgM*t8YzV0SF|YTkZhYN8`sYn-P(Ka zG|0%x>NUd9+?f$KA$46W>aOc-Fuu|Zr9wa|f+MkX)-_nQFZuPPuoOSLJo95pxZM(3 zbvTY}mHT_?hjcAuSGD5yNhm}lk#gjYX_B!Qr3d}~aLXjF3u|yIrvcvD8yDDP1lVa%ZqE~iGc8~1z*GrTu z1_p@hmQoo?boV5!EKW(O^T`dFc{#P&`87GveLhgJr!dtzIyyYtwbZN)sYq58E27 m{nkQ5z;wQK7ujn$z)F~S+5Yin^TLrK{g+$u!KM_p|CV35%L)?! diff --git a/drone.yml b/drone.yml index 54370d0..95a5bf4 100644 --- a/drone.yml +++ b/drone.yml @@ -11,7 +11,7 @@ steps: commands: - docker build --tag ofb_angular . - docker rm -f ofb_angular || true - - docker run --name ofb_angular --restart always -v /home/admin/web/static.ofbbutte.com/public_html/media:/media -d -p "8111:8111" ofb_angular + - docker run --name ofb_angular --restart always -v /root/apps/ofb/media:/media -d -p "8111:8111" ofb_angular volumes: diff --git a/git-post-receive b/git-post-receive deleted file mode 100644 index 8516cfe..0000000 --- a/git-post-receive +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh - -BRANCH=$1 -BUILD_ANGULAR_ARG=$2 -BUILD_ANGULAR=true -if [ "$BUILD_ANGULAR_ARG" = -ng ]; then - BUILD_ANGULAR=true -fi - -echo "Build Angular = $BUILD_ANGULAR" -echo "Branch Name = $BRANCH" - -if [ "$BRANCH" = test ]; then - cd /home/ofbbutte/webapps/ofb_angular_test/ -fi -if [ "$BRANCH" = master ]; then - cd /home/ofbbutte/webapps/ofb_angular_node10/ -fi - -echo "Node Version" -bin/node --version -echo "NPM Version" -bin/node bin/npm --version --scripts-prepend-node-path - -if [ "$BUILD_ANGULAR" = true ]; then - cd tempcheckout/Client - echo "Pruning Client Node Modules" - ../../bin/node ../../bin/npm prune --silent --scripts-prepend-node-path - echo "Installing Client Node Modules" - ../../bin/node ../../bin/npm install --silent --scripts-prepend-node-path - echo "Building Angular Application" - if [ "$BRANCH" = master ]; then - ../../bin/node node_modules/@angular/cli/bin/ng build --prod --configuration=production - fi - if [ "$BRANCH" = test ]; then - ../../bin/node node_modules/@angular/cli/bin/ng build --prod --configuration=test - fi - - cd ../../ - rm -r -f www/ - mv tempcheckout/Server/www/ www/ -else - echo "Skipping Building Angular Application" -fi - - -echo "Angular CLI Version" -bin/node tempcheckout/Client/node_modules/@angular/cli/bin/ng --version - -cd tempcheckout/Server/src -echo "Pruning Server Node Modules" -../../../bin/node ../../../bin/npm prune --silent --scripts-prepend-node-path -echo "Installing Server Node Modules" -../../../bin/node ../../../bin/npm install --silent --scripts-prepend-node-path -cd ../../../ -rm -r -f src/ -mv tempcheckout/Server/src/ src/ -echo "Remove start and stop script files" -rm -f bin/start -rm -f bin/stop -echo "Copying start and stop script files" -if [ "$BRANCH" = master ]; then - mv tempcheckout/Server/bin/start bin/start - mv tempcheckout/Server/bin/stop bin/stop -fi -if [ "$BRANCH" = test ]; then - mv tempcheckout/Server/bin/start_test bin/start - mv tempcheckout/Server/bin/stop_test bin/stop -fi -ls -echo "Modifying permissions on start and stop script files to be executable" -chmod +x bin/start -chmod +x bin/stop -echo "Running stop script file" -bin/stop -echo "Running start script file" -bin/start