This project was generated with the Angular Full-Stack Generator version 3.3.0.
- Git
- Node.js and npm Node ^4.2.3, npm ^2.14.7
- Bower (
npm install --global bower
) - Ruby and then
gem install sass
#ruby被墙,需要更新源到国内
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
-
Run
npm install
to install server dependencies. -
Run
bower install
to install front-end dependencies. -
Run
grunt serve
to start the development server. It should automatically open the client in your browser when ready.
Run grunt build
for building and grunt serve
for preview.
Run pm2 restart server/index.js
#grunt serve or grunt build need 3 parameters
1. 公司名 tigerwit
2. 环境 dev/pro (开发环境和生产环境)
3. 服务器 demo/www (测试服务器和线上服务器)
ex: grunt serve:tigerwit:dev:demo or grunt build:tigerwit:pro:www