aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-11 02:59:35 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-11 02:59:40 +0300
commit864e73cdc75a2fb0e4fad500f649dae2343c10a8 (patch)
tree6ce6762c6be72c98592a32fe0bed4f2ce751d544 /deploy.sh
parentcb13ea239b9f1ca6aea43125d5694d5a55dcd287 (diff)
rewrite css and js assets building
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/deploy.sh b/deploy.sh
deleted file mode 100755
index 9e418e4..0000000
--- a/deploy.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-set -e
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
-
-DEV_DIR="${DIR}"
-STAGING_DIR="$HOME/staging"
-PROD_DIR="$HOME/prod"
-PHP=/usr/bin/php8.1
-
-git push origin master
-
-[ -d "$STAGING_DIR" ] || mkdir "$STAGING_DIR"
-pushd "$STAGING_DIR"
-
-if [ ! -d .git ]; then
- git init
- git remote add origin git@ch1p.io:ch1p_io_web.git
- git fetch
- git checkout master
-fi
-
-git reset --hard
-git pull origin master
-
-composer8.1 install --no-dev --optimize-autoloader --ignore-platform-reqs
-
-if [ ! -d node_modules ]; then
- npm i
-fi
-
-cp "$DEV_DIR/config-local.php" .
-sed -i '/is_dev/d' ./config-local.php
-
-$PHP build_static.php
-
-popd
-
-# copy staging to prod
-rsync -a --delete --delete-excluded --info=progress2 "$STAGING_DIR/" "$PROD_DIR/" \
- --exclude .git \
- --exclude debug.log \
- --exclude='/composer.*' \
- --exclude='/htdocs/scss' \
- --exclude='/htdocs/sass.php' \
- --exclude='*.sh' \
- --exclude='*.sql'