1#!/bin/bash 2# Copyright (c) 2022 Gitpod GmbH. All rights reserved. 3# Licensed under the GNU Affero General Public License (AGPL). 4# See License.AGPL.txt in the project root for license information. 5 6set -Eeuo pipefail 7 8# This script swaps the backend startup endpoint with a built one 9# in a workspace and restarts the JB backend. 10 11component=${PWD##*/} 12 13# build 14go build . 15echo "$component built" 16 17sudo rm /.supervisor/supervisor && true 18sudo mv ./"$component" /.supervisor 19echo "Local Swap complete" 20 21