Skip to content

Commit

Permalink
temp disable subql launch script with terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian committed Oct 31, 2024
1 parent 4824f47 commit 8836e4d
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions templates/terraform/subql/base/scripts/install_subql_stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,30 @@ npm -v
git clone https://github.com/autonomys/astral.git
cd astral

# Function to run a command in a new tmux session
run_in_tmux_session() {
local session_name="$1"
local cmd="$2"

tmux new-session -d -s "$session_name" "$cmd"
}

# Start indexers stack
echo "Starting indexers stack..."
cd indexers || exit 1
yarn || exit 1
run_in_tmux_session "indexers_dev" "yarn prod" || exit 1

# Wait for indexers to sync (adjust sleep duration as needed)
echo "Waiting for indexers to sync blocks... (sleeping for 30 seconds)"
sleep 30

# Run metadata in a new session
echo "Running yarn metadata in a new session..."
run_in_tmux_session "indexers_metadata" "cd indexers && yarn metadata && yarn migrate --database-name taurus" || exit 1

# Start Hasura console in a new session
echo "Starting Hasura console in a new session..."
run_in_tmux_session "hasura_console" "cd indexers && yarn console" || exit 1
# # Function to run a command in a new tmux session
# run_in_tmux_session() {
# local session_name="$1"
# local cmd="$2"

# tmux new-session -d -s "$session_name" "$cmd"
# }

# # Start indexers stack
# echo "Starting indexers stack..."
# cd indexers || exit 1
# yarn || exit 1
# run_in_tmux_session "indexers_dev" "yarn prod" || exit 1

# # Wait for indexers to sync (adjust sleep duration as needed)
# echo "Waiting for indexers to sync blocks... (sleeping for 30 seconds)"
# sleep 30

# # Run metadata in a new session
# echo "Running yarn metadata in a new session..."
# run_in_tmux_session "indexers_metadata" "cd indexers && yarn metadata && yarn migrate --database-name taurus" || exit 1

# # Start Hasura console in a new session
# echo "Starting Hasura console in a new session..."
# run_in_tmux_session "hasura_console" "cd indexers && yarn console" || exit 1

exit 0

0 comments on commit 8836e4d

Please sign in to comment.