mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
20 lines
501 B
Bash
Executable File
20 lines
501 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
|
|
# Licensed under the GNU Affero General Public License (AGPL).
|
|
# See License.AGPL.txt in the project root for license information.
|
|
|
|
set -Eeuo pipefail
|
|
|
|
# This script swaps the backend startup endpoint with a built one
|
|
# in a workspace and restarts the JB backend.
|
|
|
|
component=${PWD##*/}
|
|
|
|
# build
|
|
go build .
|
|
echo "$component built"
|
|
|
|
sudo rm /.supervisor/supervisor && true
|
|
sudo mv ./"$component" /.supervisor
|
|
echo "Local Swap complete"
|