我正在为我的 angular2 应用程序使用 angular-cli。现在我想在 ubuntu 14.04 digitalocean 服务器上部署我的应用程序。我从未在服务器中进行过任何角度应用程序部署。部署的方法或任何推荐的方法是什么?目前我的项目结构如下 -
这是我在 dist 文件夹下的 index.html
<html>
<head>
<meta charset="utf-8">
<title>BB</title>
<base href="/">
<link rel="stylesheet" type="text/css" href="assets/source/stable/layout-default.css">
<link rel="stylesheet" type="text/css" href="assets/demos/css/jquery-ui.css">
<link rel="stylesheet" href="assets/demos/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/demos/dist/css/AdminLTE.css">
<link rel="stylesheet" href="assets/demos/dist/css/skins/_all-skins.css">
<link rel="stylesheet" href="assets/customs.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="assets/js/js-library/jstree/themes/default/style.css" />
<link rel="stylesheet" href="assets/demos/css/dc.css">
<script src="/vendor/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="assets/js/js-library/jstree/jstree.js"></script>
<script src=" https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-layout/1.4.3/jquery.layout.min.js" type="text/javascript"></script>
<script type="text/javascript" src="assets/source/stable/callbacks/jquery.layout.resizePaneAccordions.js"></script>
<script src="assets/demos/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/demos/js/adminlte/app.js"></script>
<script src="assets/demos/js/adminlte/demo.js"></script>
<script src="assets/datatables/jquery.dataTables.js"></script>
<script src="assets/datatables/dataTables.bootstrap.min.js"></script>
<link rel="stylesheet" href="assets/query-builder/css/query-builder.default.css" id="qb-theme">
<link href="http://querybuilder.js.org/dist/jQuery-QueryBuilder/dist/css/query-builder.default.min.css" rel="stylesheet">
<script src="assets/bootstrap-select/dist/js/bootstrap-select.js"></script>
<link href="http://querybuilder.js.org/dist/selectize/dist/css/selectize.bootstrap3.css" rel="stylesheet">
<script src="assets/selectize/dist/js/standalone/selectize.js"></script>
<script src="assets/bootbox/bootbox.js"></script>
<script src="assets/jquery-extendext/jQuery.extendext.min.js"></script>
<script src="assets/doT/doT.js"></script>
<script src="assets/moment/min/moment.min.js"></script>
<script src="assets/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<link href="assets/seiyria-bootstrap-slider/dist/css/bootstrap-slider.min.css" rel="stylesheet">
<script src="assets/seiyria-bootstrap-slider/dist/bootstrap-slider.min.js"></script>
<link href="assets/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
<link href="assets/bootstrap-select/dist/css/bootstrap-select.min.css" rel="stylesheet">
<script src="assets/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
<script src="assets/query-builder/query-builder.js"></script>
<script type="text/javascript" src="assets/js/d3.js"></script>
<script type="text/javascript" src="assets/js/crossfilter.js"></script>
<script type="text/javascript" src="assets/js/dc.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<script src="vendor/es6-shim/es6-shim.js"></script>
<script src="vendor/reflect-metadata/Reflect.js"></script>
<script src="vendor/systemjs/dist/system.src.js"></script>
<script src="vendor/zone.js/dist/zone.js"></script>
<script>
System.import('system-config.js').then(function() {
System.import('main');
}).catch(console.error.bind(console));
</script>
</head>
<body>
<bais-app>Loading...</bais-app>
</body>
</html>
但每当我尝试
ng serve
每次它显示我这个错误
Error: Attempting to watch missing directory: typings
但是在 node_modules 文件夹中的打字文件夹在哪里