$ npm run dev
$ npm test
will run the tests once$ ./node_modules/.bin/karma start
will watch for changes and run the tests on changeJust run $ npm run build
, it will produce these tasks:
test/spec/**/*.jsx
/dist/app-[hash].css
/dist/js/app-[hash].js
Build the project first:
$ npm run build
Then start the koa server:
$ NODE_ENV=production node server/index.js
(iojs)$ NODE_ENV=production node --harmony server/index.js
(nodejs 0.12.x)You can also use processes.json
to run the application with PM2 Monitor on your production server (customize it for your use):
$ pm2 start processes.json