【发布时间】:2021-05-10 10:08:33
【问题描述】:
我正在 Digitalocean 上使用 Vue.js 和 Django 开发一个小型应用程序,所以我还安装了 Django Webpack 加载器和跟踪器,现在我已经执行了我的 Django 服务器 和我的 vue。 js 也使用 npm run serve 并且当我访问我的网页 localhost:8000 时,我只看到一个空白页面,因为一切都已正确安装,这是我的 HTML 页面(当我在 chrome 浏览器上检查时)
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<div id="app"></div>
<script type="text/javascript" src="http://0.0.0.0:8080/js/app.js"></script>
</body>
</html>
PS:我认为问题出在 app.js 中(因为我点击了链接,但我得到了一个错误)
This site can’t be reachedThe webpage at http://0.0.0.0:8080/js/app.js might be temporarily down or it may have moved permanently to a new web address.
ERR_ADDRESS_INVALID
【问题讨论】: