Skip to content

Commit

Permalink
fix: Add make init and fix start
Browse files Browse the repository at this point in the history
  • Loading branch information
ad2ien committed Feb 8, 2022
1 parent 97e66e6 commit 30468fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ install: ## Install node executable
@echo "${COLOR_CYAN} 🚚 Installing project ${BINARY_NAME}${COLOR_RESET}"
@go install ${BUILD_FLAGS} ${CMD_ROOT}

init: install ## Starport init.
@echo "${COLOR_CYAN} 🏁 Starport init ${BINARY_NAME}${COLOR_RESET}"
@docker run -w /app -v ${PWD}:/app -ti starport/cli chain init --home /app/target/home

## Start:
start: install ## Start the blockchain node
@echo "${COLOR_CYAN} 🚀 Starting project ${COLOR_RESET}"
@okp4d start
@${TARGET_FOLDER}/okp4d start --home ./target/home

## Test:
test: test-go ## Pass all the tests
Expand Down

0 comments on commit 30468fe

Please sign in to comment.