如何在后台运行角2应用程序 [英] How to run angular 2 app in background

查看:170
本文介绍了如何在后台运行角2应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



  sudo forever start -cnpm start./ 

我已经尝试了以下解决方案,但无法使用。

和package.json文件是这样的,看看start命令:(这不是满的package.json)

 name:angular2-quickstart,
version:1.0.0 ,
scripts:{
lite:lite-server,
gulp:gulp,
start:concurrent \ npm run gulp \\npm run lite \,
postinstall:typings install,
tsc:tsc,
tsc:w :tsc -w,
typings:typings
},


解决方案

我找到 angular-cli a>,这可以帮助我部署我的角度2应用程序。


i have already tried following solution but it is not working.

sudo forever start -c "npm start" ./

and package.json file is something like this, look at the start command: (this is not full package.json)

"name": "angular2-quickstart",
  "version": "1.0.0",
  "scripts": {
    "lite": "lite-server",
    "gulp": "gulp",
    "start": "concurrent \"npm run gulp\" \"npm run lite\" ",
    "postinstall": "typings install",
    "tsc": "tsc",
    "tsc:w": "tsc -w",
    "typings": "typings"
  },

解决方案

i have found angular-cli, which helps me to deploy my angular 2 app.

这篇关于如何在后台运行角2应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆