我在 Azure 中创建了一个 Web 应用程序来托管一个 Angular 应用程序。我选择了运行时如下:
但我的本地设置详细信息:
我使用 Anguler cli 创建应用程序,然后运行 ng build --prod 来创建 dist。然后我尝试了以下方法将 Angular 应用程序部署到 Web 应用程序: 1. 在 VS Code 中使用 Azure App Service 扩展 2. 使用 FileZilla 的 FTP 以及来自 Web 应用程序部署中心的 ftp 详细信息。
但是,当我浏览 url:https ://eventzweb.azurewebsites.net/ 时,我 从 angular 应用程序中看到了以下页面,但没有看到我的页面。
知道为什么会这样吗?为什么我看不到我的页面?
感谢您在高级方面的帮助。
我正在尝试将我的 NEXTJS 应用程序部署到 azure。我创建了一个包含安装了 Node 的 linux 操作系统的 web 应用程序。我的package.json看起来像这样。
{
"name": "frontend",
"version": "1.0.0",
"description": "This package contains all necessary depenencies for frontned",
"main": "index.js",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start -p $PORT",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "masnad",
"license": "ISC",
"dependencies": {
"@zeit/next-css": "^1.0.1",
"next": "^8.0.3",
"react": "^16.8.3",
"react-dom": "^16.8.3"
}
}
Run Code Online (Sandbox Code Playgroud)
我首先创建了一个空的 web 应用程序,然后使用了部署服务 kudu,我将我的代码从本地推送到了 azure。
推送到 azure 时的 git 日志如下所示
remote: ..............................................................
remote: npm …Run Code Online (Sandbox Code Playgroud)