#!/bin/bash

source ~/.bash_profile

sed -i "s#__REACT_APP_CLUSTER_URL__#$REACT_APP_CLUSTER_URL#g" /web-console/web/.env

cd /web-console/web && \
	yarn build

cd /web-console && \
	statik -src=web/build && \
	/usr/local/go/bin/go build

# Levantamos el web-console
./ssh-web-console
