File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # !/usr/bin/env fish
2+
3+ # Export env vars from pass
4+ set -x HYPERTRADE_MASTER_ADDR (pass show hypertrade/master_addr | head -n 1)
5+ set -x HYPERTRADE_API_WALLET_PRIV (pass show hypertrade/api_wallet_priv | head -n 1)
6+ set -x HYPERTRADE_SUBACCOUNT_ADDR (pass show hypertrade/subaccount_addr | head -n 1)
7+ set -x HYPERTRADE_LISTEN_PORT 6487
8+ set -x HYPERTRADE_DB_PATH ./hypertrade_prod.db
9+
10+ # Launch the server
11+ uvicorn hypertrade.daemon:app --host 0.0.0.0 --port $HYPERTRADE_LISTEN_PORT --workers 1 --loop uvloop --http httptools --log-level info --access-log --use-colors --limit-concurrency 1000
Original file line number Diff line number Diff line change 1- # !/usr/bin/env fish
1+ #! /usr/bin/env bash
22
33# Export env vars from pass
4- set -x HYPERTRADE_MASTER_ADDR (pass show hypertrade/master_addr | head -n 1)
5- set -x HYPERTRADE_API_WALLET_PRIV (pass show hypertrade/api_wallet_priv | head -n 1)
6- set -x HYPERTRADE_SUBACCOUNT_ADDR (pass show hypertrade/subaccount_addr | head -n 1)
7- set -x HYPERTRADE_LISTEN_PORT 6487
8- set -x HYPERTRADE_DB_PATH ./hypertrade_prod.db
4+ export HYPERTRADE_MASTER_ADDR= $ ( pass show hypertrade/master_addr | head -n 1)
5+ export HYPERTRADE_API_WALLET_PRIV= $ ( pass show hypertrade/api_wallet_priv | head -n 1)
6+ export HYPERTRADE_SUBACCOUNT_ADDR= $ ( pass show hypertrade/subaccount_addr | head -n 1)
7+ export HYPERTRADE_LISTEN_PORT= 6487
8+ export HYPERTRADE_DB_PATH= ./hypertrade_prod.db
99
1010# Launch the server
11- uvicorn hypertrade.daemon:app --host 0.0.0.0 --port $HYPERTRADE_LISTEN_PORT --workers 1 --loop uvloop --http httptools --log-level info --access-log --use-colors --limit-concurrency 1000
11+ uvicorn hypertrade.daemon:app --host 0.0.0.0 --port $HYPERTRADE_LISTEN_PORT --workers 1 --loop uvloop --http httptools --log-level info --access-log --use-colors --limit-concurrency 1000
Original file line number Diff line number Diff line change 1+ # !/usr/bin/env fish
2+
3+ # Export env vars from pass
4+ set -x HYPERTRADE_MASTER_ADDR (pass show hypertrade_test/master_addr | head -n 1)
5+ set -x HYPERTRADE_API_WALLET_PRIV (pass show hypertrade_test/api_wallet_priv | head -n 1)
6+ set -x HYPERTRADE_SUBACCOUNT_ADDR
7+ set -x HYPERTRADE_LISTEN_PORT 6488
8+ set -x HYPERTRADE_DB_PATH ./hypertrade_test.db
9+
10+ # Launch the server
11+ uvicorn hypertrade.daemon:app --host 0.0.0.0 --port $HYPERTRADE_LISTEN_PORT --reload
12+
Original file line number Diff line number Diff line change 1- # !/usr/bin/env fish
1+ #! /usr/bin/env bash
22
33# Export env vars from pass
4- set -x HYPERTRADE_MASTER_ADDR (pass show hypertrade_test/master_addr | head -n 1)
5- set -x HYPERTRADE_API_WALLET_PRIV (pass show hypertrade_test/api_wallet_priv | head -n 1)
6- set -x HYPERTRADE_SUBACCOUNT_ADDR
7- set -x HYPERTRADE_LISTEN_PORT 6488
8- set -x HYPERTRADE_DB_PATH ./hypertrade_test.db
4+ export HYPERTRADE_MASTER_ADDR= $ ( pass show hypertrade_test/master_addr | head -n 1)
5+ export HYPERTRADE_API_WALLET_PRIV= $ ( pass show hypertrade_test/api_wallet_priv | head -n 1)
6+ export HYPERTRADE_SUBACCOUNT_ADDR=
7+ export HYPERTRADE_LISTEN_PORT= 6488
8+ export HYPERTRADE_DB_PATH= ./hypertrade_test.db
99
1010# Launch the server
1111uvicorn hypertrade.daemon:app --host 0.0.0.0 --port $HYPERTRADE_LISTEN_PORT --reload
12-
You can’t perform that action at this time.
0 commit comments