-
Notifications
You must be signed in to change notification settings - Fork 75
Deployment and Debugging
slycloud edited this page Jan 27, 2015
·
6 revisions
$ git clone git://github.com/yuantiku/flyboard
$ npm install
$ npm install sqlite3 # OR npm install mysql
$ npm install -g mocha supervisor
copy configs/database.example.js
to configs/database.js
,then edit it.
Then,
- run
npm run migrate:make
to create a migration file, in which table configuration is edited. - run
npm run migrate:latest
to run latest migration files, initialing tables structure. - run
npm run migrate:rollback
to rollback migration files run last time.
$ DEBUG=flyboard supervisor bin/www
open a new terminal,and run mocha -w
to view the conditions of unit testing in real time.