-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #265 from fedimint/wo/nix-mprocs-improvements
Add guardian ui to `nix-gateway`, fix scripts not exiting
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# shellcheck shell=bash | ||
|
||
set -eo pipefail | ||
|
||
eval "$(devimint env)" | ||
|
||
echo Waiting for devimint to start up fedimint and gateway | ||
|
||
STATUS="$(devimint wait)" | ||
if [ "$STATUS" = "ERROR" ] | ||
then | ||
echo "fedimint didn't start correctly" | ||
echo "See other panes for errors" | ||
exit 1 | ||
fi | ||
|
||
# Conigure UI env from devimint env | ||
CONFIG_PORT=$(($FM_PORT_FEDIMINTD_BASE + 1)) # Fedimintd 0 config AOU port is always base + 1 | ||
export REACT_APP_FM_CONFIG_API="ws://127.0.0.1:$CONFIG_PORT" | ||
|
||
yarn dev:guardian-ui |