Skip to content

Commit

Permalink
dev: Self Hosting with private repo fixes (makeplane#2787)
Browse files Browse the repository at this point in the history
* fixes to self hosting

* self hosting fixes

* removed .temp

* wip

* wip

* self install private repo

* folder change

* fix

---------

Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
  • Loading branch information
mguptahub and sriramveeraghanta committed Dec 7, 2023
1 parent 3a1b64d commit 1f61ad1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ pnpm-workspace.yaml
tmp/
## packages
dist
.temp/
22 changes: 20 additions & 2 deletions deploy/selfhost/install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/bin/bash

BRANCH=${BRANCH:-master}
BRANCH=master
SCRIPT_DIR=$PWD
PLANE_INSTALL_DIR=$PWD/plane-app
mkdir -p $PLANE_INSTALL_DIR/archive

function install(){
echo
Expand All @@ -28,7 +27,20 @@ function download(){
mv $PLANE_INSTALL_DIR/variables-upgrade.env $PLANE_INSTALL_DIR/.env
fi

if [ "$BRANCH" != "master" ];
then
cp $PLANE_INSTALL_DIR/docker-compose.yaml $PLANE_INSTALL_DIR/temp.yaml

sed -e 's@plane-frontend:@plane-frontend-private:@g' \
-e 's@plane-space:@plane-space-private:@g' \
-e 's@plane-backend:@plane-backend-private:@g' \
-e 's@plane-proxy:@plane-proxy-private:@g' \
-e 's@${APP_RELEASE:-latest}@'"$BRANCH"'@g' \
$PLANE_INSTALL_DIR/temp.yaml > $PLANE_INSTALL_DIR/docker-compose.yaml

rm $PLANE_INSTALL_DIR/temp.yaml
fi

echo ""
echo "Latest version is now available for you to use"
echo ""
Expand Down Expand Up @@ -108,4 +120,10 @@ function askForAction(){
fi
}

if [ "$BRANCH" != "master" ];
then
PLANE_INSTALL_DIR=$PWD/plane-app-$(echo $BRANCH | sed -r 's@(\/|" "|\.)@-@g')
fi
mkdir -p $PLANE_INSTALL_DIR/archive

askForAction

0 comments on commit 1f61ad1

Please sign in to comment.