将角度分布部署到服务器

时间:2020-03-10 05:20:10

标签: angular deployment

我的angular 4项目已成功编译。 并创建“ dist”文件夹。

当我将这些文件从Web浏览器移动到apache服务器端口并运行时。它是空白页,没有任何错误。

index.html来源:

<!doctype html>
<html lang="en"  class="thin square scrollbar-dusty-grass"  
style="overflow-y: scroll !important;overflow-x: hidden;">

<head>
<meta charset="utf-8">
<title>Ser Man- Online Service Man Directory</title>
<link rel="shortcut icon" href="http://127.0.0.1/favico.ico" />
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>

<body>
<app-root></app-root>
<script src="runtime-es2015.js" type="module"></script>
<script src="runtime-es5.js" nomodule defer></script>
<script src="polyfills-es5.js" nomodule defer></script>
<script src="polyfills-es2015.js"type="module"></script><script src="styles-es2015.js" type="module"> 
</script>
<script src="styles-es5.js" nomodule defer></script><script src="scripts.js" defer></script>
<script src="vendor-es2015.js" type="module"></script>
<script src="vendor-es5.js" nomodule defer></script>
<script src="main-es2015.js" type="module"></script>
<script src="main-es5.js" nomodule defer></script>
</body>

</html>

0 个答案:

没有答案