mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
fix: Sink
This commit is contained in:
+41
-3
@@ -7,17 +7,33 @@ vars:
|
||||
sh: git rev-parse --short HEAD
|
||||
ROOT_DIR:
|
||||
sh: git rev-parse --show-toplevel
|
||||
OS:
|
||||
sh: uname -s
|
||||
TASKS:
|
||||
sh: task -l
|
||||
tasks:
|
||||
default:
|
||||
cmds:
|
||||
- echo "{{.VERSION}}"
|
||||
- echo "{{.COMMIT}}"
|
||||
- echo "{{.ROOT_DIR}}"
|
||||
- gh run ls -L 3
|
||||
- gum format -- "# Sonr ({{.OS}}-{{.VERSION}})" "({{.COMMIT}}) {{.ROOT_DIR}}" "### {{ .TASKS }}"
|
||||
silent: true
|
||||
|
||||
clean:
|
||||
desc: Clean build artifacts
|
||||
cmds:
|
||||
- sh ./scripts/init_env.sh
|
||||
- rm -rf ./build
|
||||
- rm -rf ./dist
|
||||
- rm -rf ./static
|
||||
silent: true
|
||||
|
||||
build:
|
||||
desc: Build all binaries
|
||||
silent: true
|
||||
cmds:
|
||||
- task: clean
|
||||
- mkdir -p ./build
|
||||
- mkdir -p ./static/wasm
|
||||
- task: build:motr
|
||||
- task: build:sonr
|
||||
- task: build:hway
|
||||
@@ -36,3 +52,25 @@ tasks:
|
||||
internal: true
|
||||
silent: true
|
||||
cmd: goreleaser build --snapshot --id hway --single-target --clean -o ./build/hway
|
||||
|
||||
init:db:
|
||||
desc: Initialize the database
|
||||
silent: true
|
||||
platforms:
|
||||
- linux
|
||||
cmds:
|
||||
- sudo -u postgres psql -f ./deploy/sink/db_seed.sql
|
||||
- sudo -u postgres psql -d chainindex -f ./deploy/sink/schema_indexer.sql
|
||||
|
||||
reset:db:
|
||||
desc: Reset the database
|
||||
silent: true
|
||||
platforms:
|
||||
- linux
|
||||
cmd: gum confirm "Reset chainindex, highway, and matrixhs?" --default=false --affirmative "Yes" && sudo -u postgres psql -f ./deploy/sink/db_reset.sql|| echo "No selected"
|
||||
|
||||
init:ipfs:
|
||||
desc: Initialize the ipfs node
|
||||
silent: true
|
||||
cmds:
|
||||
- sh ./scripts/ipfs_config.sh
|
||||
|
||||
Reference in New Issue
Block a user