mirror of https://github.com/status-im/fathom.git
update readme, database migrations will now run automatically
This commit is contained in:
parent
e47183230d
commit
ffe1db7c44
|
@ -1,3 +1,4 @@
|
||||||
|
ANA_DATABASE_DRIVER=mysql
|
||||||
ANA_DATABASE_NAME="ana"
|
ANA_DATABASE_NAME="ana"
|
||||||
ANA_DATABASE_USER="root"
|
ANA_DATABASE_USER="root"
|
||||||
ANA_DATABASE_PASSWORD=""
|
ANA_DATABASE_PASSWORD=""
|
||||||
|
|
|
@ -14,7 +14,6 @@ This is nowhere near being usable, let alone stable. Please treat as a proof of
|
||||||
For getting a development version of Ana up & running, please go through the following steps.
|
For getting a development version of Ana up & running, please go through the following steps.
|
||||||
|
|
||||||
1. Rename `.env.example` to `.env` and set your database credentials.
|
1. Rename `.env.example` to `.env` and set your database credentials.
|
||||||
1. Create or migrate the database: `export $(cat .env | xargs) && $GOPATH/bin/migrate -url mysql://$ANA_DATABASE_USER:$ANA_DATABASE_PASSWORD@$ANA_DATABSE_HOST/$ANA_DATABASE_NAME -path ./db/migrations up`
|
|
||||||
3. Compile into binary: `make`
|
3. Compile into binary: `make`
|
||||||
4. Create your user account: `ana register <email> <password>`
|
4. Create your user account: `ana register <email> <password>`
|
||||||
5. Run default Gulp task to build static assets: `gulp`
|
5. Run default Gulp task to build static assets: `gulp`
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
development:
|
|
||||||
dialect: mysql
|
|
||||||
datasource: root:root@/ana
|
|
||||||
dir: datastore/migrations
|
|
Loading…
Reference in New Issue