Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: add env if local run application
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryburov committed Mar 3, 2023
1 parent f9fb1f2 commit 2aed9cd
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,29 @@ test: ## Run tests
go clean --testcache
go test ./...

run: ## Run application local
go run cmd/app/main.go

release: ## Git tag create and push
git tag -s -a v${tag} -m 'chore(release): v$(tag) [skip ci]'
git push origin v${tag}

release.revert: ## Revert git release tag
git tag -d v${tag}
git push --delete origin v${tag}
git push --delete origin v${tag}

# logger config
export LOGGER_CALLER=false
export LOGGER_STACKTRACE=true
export LOGGER_LEVEL=debug
# database config
export DB_HOST=localhost:3306
export DB_USER=test_mysql
export DB_PASSWORD=a2s_kjlasjd
export DB_BASE=test
# exchange config
export EXCHANGE_URL=wss://ws-feed.exchange.coinbase.com
export EXCHANGE_ORIGIN=https://coinbase.com
export EXCHANGE_PROTOCOL=
export EXCHANGE_SYMBOLS=ETH-BTC,BTC-USD,BTC-EUR
export EXCHANGE_CHANNELS=ticker

run: ## Run application local
go run cmd/app/main.go

0 comments on commit 2aed9cd

Please sign in to comment.