Skip to content

Commit

Permalink
Separate sBTC alpha deployment (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
radicleart committed Aug 7, 2023
1 parent c394d92 commit 8d19fe2
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 6 deletions.
37 changes: 37 additions & 0 deletions deploy-linode-alpha.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash -e
set -e;

export DEPLOYMENT=$1
export PORT=7019

PATH_DEPLOY=build
mkdir -p $PATH_DEPLOY
export SERVER=chomsky.brightblock.org
export BUILDER=build
if [ "$DEPLOYMENT" == "stag" ]; then
SERVER=popper.brightblock.org;
BUILDER=build-linode
PORT=22
fi

printf "\n-----------------------------------------------------------------------------------------------------\n";
printf "Running script: $0 \n";
printf "Deploying to: $SERVER \n";
printf "\n-----------------------------------------------------------------------------------------------------\n";

function __build() {
npm run $BUILDER
echo "Initialisation of $BUILD_PATH complete";
}

function __pushcode() {
echo "\n- deploying from pipeline build \n";
rsync -aP -e "ssh -p $PORT" $PATH_DEPLOY/* static/* bob@$SERVER:/var/www/sbtc-alpha
}

BUILD_PATH=./
__build

__pushcode

exit 0;
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"classnames": "^2.3.2",
"flowbite": "^1.6.5",
"flowbite-svelte": "^0.39.1",
"sbtc-bridge-lib": "^1.0.31",
"sbtc-bridge-lib": "^1.0.33",
"sockjs": "^0.3.24",
"svelte-local-storage-store": "^0.5.0",
"svelte-qrcode": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/routes/transactions/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import TrCommit from '$lib/components/transactions/TrCommit.svelte';
import TrRevealReclaim from '$lib/components/transactions/TrRevealReclaim.svelte';
import { explorerBtcTxUrl } from '$lib/utils'
import Button from '$lib/components/shared/Button.svelte';
import { ChevronLeft } from 'svelte-heros-v2';
import { ChevronLeft } from 'svelte-hero-icons';
import PendingDeposit from '$lib/components/transactions/PendingDeposit.svelte';
import CommittedDeposit from '$lib/components/transactions/CommittedDeposit.svelte';
Expand Down

0 comments on commit 8d19fe2

Please sign in to comment.