mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
feature/deploy linux (#1206)
* chore(deploy): remove devbox configuration * feat(taskfiles): add mount and platform specific start commands for IPFS
This commit is contained in:
+7
-2
@@ -14,12 +14,17 @@ tasks:
|
||||
build:
|
||||
desc: Build the hway binary
|
||||
silent: true
|
||||
cmds:
|
||||
cmds:
|
||||
- gum spin --spinner dot --title "Build Hway Single Target ({{.OS}}/{{.ARCH}})..." -- goreleaser build --snapshot --clean --single-target --id hway -o {{.BIN_DIR}}/hway
|
||||
|
||||
install:
|
||||
desc: Install the hway binary
|
||||
silent: true
|
||||
cmds:
|
||||
- gum spin --spinner dot --title "Install Hway Single Target ({{.OS}}/{{.ARCH}})..." -- make install-hway
|
||||
|
||||
start:
|
||||
desc: Start the hway daemon
|
||||
silent: true
|
||||
deps: [build]
|
||||
cmds:
|
||||
- "{{.BINARY}}"
|
||||
|
||||
+19
-6
@@ -29,9 +29,22 @@ tasks:
|
||||
- ipfs config --json Peering.Peers {{.PEERS}}
|
||||
- ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
|
||||
|
||||
start:
|
||||
desc: Start the ipfs daemon
|
||||
silent: true
|
||||
deps: [init]
|
||||
cmds:
|
||||
- ipfs daemon
|
||||
mount:
|
||||
desc: Mount the ipfs,ipns directories
|
||||
silent: true
|
||||
platforms:
|
||||
- linux
|
||||
cmds:
|
||||
- ipfs config --json Mounts.FuseAllowOther true
|
||||
|
||||
start:
|
||||
desc: Start the ipfs daemon
|
||||
silent: true
|
||||
cmds:
|
||||
- cmd: ipfs daemon --migrate
|
||||
platforms:
|
||||
- darwin
|
||||
- task: mount
|
||||
- cmd: ipfs daemon --mount
|
||||
platforms:
|
||||
- linux
|
||||
|
||||
@@ -4,13 +4,10 @@ vars:
|
||||
BINARY: sonrd
|
||||
BUILD_FLAGS: -mod=readonly -trimpath
|
||||
BUILD_TAGS: netgo,ledger
|
||||
COMMIT:
|
||||
COMMIT:
|
||||
sh: git rev-parse HEAD
|
||||
VERSION:
|
||||
sh: git describe --tags --always
|
||||
DOPPLER_TOKEN:
|
||||
sh: skate get DOPPLER_NETWORK
|
||||
|
||||
tasks:
|
||||
build:
|
||||
desc: Build the sonrd binary
|
||||
@@ -30,11 +27,11 @@ tasks:
|
||||
./cmd/sonrd
|
||||
env:
|
||||
CGO_ENABLED: 1
|
||||
GOARCH:
|
||||
GOARCH:
|
||||
sh: go env GOARCH
|
||||
GOOS:
|
||||
sh: go env GOOS
|
||||
|
||||
|
||||
install:
|
||||
desc: Install sonrd
|
||||
silent: true
|
||||
@@ -45,4 +42,3 @@ tasks:
|
||||
desc: Start the sonr node
|
||||
cmds:
|
||||
- sh scripts/test_dop_node.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user