mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
Update README
Adding link to mysql docker image page, ruby dotenv page, also remind user to provide correct MYSQL_URL
This commit is contained in:
parent
c01f878c19
commit
4992efb4af
|
@ -29,6 +29,8 @@ Get your exchange API key and secret after you register the accounts:
|
|||
|
||||
## Installation
|
||||
|
||||
Setup MySQL or [run it in docker](https://hub.docker.com/_/mysql)
|
||||
|
||||
Install the builtin commands:
|
||||
|
||||
```sh
|
||||
|
@ -54,10 +56,11 @@ MYSQL_PORT=3306
|
|||
MYSQL_USERNAME=root
|
||||
MYSQL_PASSWORD=
|
||||
MYSQL_DATABASE=bbgo
|
||||
# Make sure the following line is correct so you can migrate successfully
|
||||
MYSQL_URL=root@tcp(127.0.0.1:3306)/bbgo
|
||||
```
|
||||
|
||||
Then run the `migrate` command to initialize your database:
|
||||
Make sure you have [dotenv](https://github.com/bkeepers/dotenv). Then run the `migrate` command to initialize your database:
|
||||
|
||||
```sh
|
||||
dotenv -f .env.local -- bbgo migrate up
|
||||
|
|
Loading…
Reference in New Issue
Block a user