update readme, database migrations will now run automatically

This commit is contained in:
Danny van Kooten 2017-01-25 15:19:08 +01:00
parent e47183230d
commit ffe1db7c44
3 changed files with 1 additions and 5 deletions

View File

@ -1,3 +1,4 @@
ANA_DATABASE_DRIVER=mysql
ANA_DATABASE_NAME="ana"
ANA_DATABASE_USER="root"
ANA_DATABASE_PASSWORD=""

View File

@ -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.
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`
4. Create your user account: `ana register <email> <password>`
5. Run default Gulp task to build static assets: `gulp`

View File

@ -1,4 +0,0 @@
development:
dialect: mysql
datasource: root:root@/ana
dir: datastore/migrations