在azure网站中部署Django应用程序时,找不到可部署的项目

时间:2022-04-21 19:20:50

I am trying to deploy a Django app using azure websites. My app works locally fine, but I am not able to deploy it. I get a HTTP 500 Internal Server Error.

我正在尝试使用azure网站部署Django应用程序。我的应用程序在本地工作正常,但我无法部署它。我收到HTTP 500内部服务器错误。

I found this in the view log of my commit.

我在提交的视图日志中找到了这个。

Found solution 'C:\DWASFiles\Sites\chocolate-chocolate\VirtualDirectory0\site\repository\chocolate\chocolate.sln' with no deployable projects. Deploying files instead.

找到解决方案'C:\ DWASFiles \ Sites \ chocolate-chocolate \ VirtualDirectory0 \ site \ repository \ chocolate \ chocolate.sln',没有可部署的项目。改为部署文件。

Any hint is highly appreciated.

任何提示都受到高度赞赏。

1 个解决方案

#1


1  

I experienced the same problem deploying a boiler plate node.js app.

我在部署锅炉板node.js应用程序时遇到了同样的问题。

I found the solution here: http://nodejstools.codeplex.com/workitem/702

我在这里找到了解决方案:http://nodejstools.codeplex.com/workitem/702

I think when you create a new project you need to uncheck "Create directory for solution" The issue here is that the deployment scripts won't detect it as a Node.js app if the server.js/app.js is in a folder.

我认为当你创建一个新项目时,你需要取消选中“为解决方案创建目录”这里的问题是如果server.js / app.js在一个文件夹中,部署脚本将不会将其检测为Node.js应用程序。

It might be worth checking your source directory structure for a nested folder.

可能值得检查嵌套文件夹的源目录结构。

#1


1  

I experienced the same problem deploying a boiler plate node.js app.

我在部署锅炉板node.js应用程序时遇到了同样的问题。

I found the solution here: http://nodejstools.codeplex.com/workitem/702

我在这里找到了解决方案:http://nodejstools.codeplex.com/workitem/702

I think when you create a new project you need to uncheck "Create directory for solution" The issue here is that the deployment scripts won't detect it as a Node.js app if the server.js/app.js is in a folder.

我认为当你创建一个新项目时,你需要取消选中“为解决方案创建目录”这里的问题是如果server.js / app.js在一个文件夹中,部署脚本将不会将其检测为Node.js应用程序。

It might be worth checking your source directory structure for a nested folder.

可能值得检查嵌套文件夹的源目录结构。