简体   繁体   English

将Azure移动服务代码部署到Azure App Service

[英]Deploy Azure mobile service code to Azure App Service

Currently, I have an existed App Service (A) that have been migrated from Mobile Service. 当前,我有一个已经从移动服务迁移的应用程序服务(A) And now I want the newly created App service (C) work compatible with old code of (A). 现在,我希望新创建的App服务(C)与(A)的旧代码兼容。

I have deployed all files in wwwroot of (A) to (B) but unfortunately (B) can't access to Database request.service.tables.getTable('User').read.... will return Error: Internal Server Error Does anyone know this issue? 我已将(A)的wwwroot中的所有文件部署到(B),但不幸的是(B)无法访问数据库request.service.tables.getTable('User').read....将返回Error: Internal Server Error有人知道这个问题吗?
Is able to deploy old code of Mobile Service (or the App Service migrated from Mobile service) to the new App Service? 是否可以将旧版本的移动服务代码(或从移动服务迁移的应用程序服务)部署到新的应用程序服务?

There are two options for moving from Mobile Services to App Service: migration or upgrade. 从移动服务到应用服务有两种选择:迁移或升级。 Either option will give you access to all of the hosting capabilities of App Service: 两种选择都可以让您访问App Service的所有托管功能:

  • Migrating a service just changes the underlying environment that hosts your mobile backend. 迁移服务只会更改托管您的移动后端的基础环境。 It requires no code changes to either the mobile client or the mobile server project. 它不需要更改移动客户端或移动服务器项目的代码。 If you use the automated migration option, this preserves your service.azure-mobile.net URL. 如果使用自动迁移选项,则将保留service.azure-mobile.net URL。
  • Upgrading a service does require code changes to both your server and client project but allows you to take advantage of new mobile SDK features, such as improvements to authentication and more flexibility for your server project. 升级服务确实需要更改服务器和客户端项目的代码,但允许您利用新的移动SDK功能,例如身份验证的改进和服务器项目的更大灵活性。

For more details, refer to Migrate your existing Azure Mobile Service to Azure App Service . 有关更多详细信息,请参阅将现有的Azure移动服务迁移到Azure应用服务

Since you have not provided complete error message details, I suggest you Enable diagnostics logging for web apps in Azure App Service in case if you haven't enabled earlier to check the complete error details. 由于尚未提供完整的错误消息详细信息,因此建议您在Azure App Service启用Web应用程序的诊断日志记录 ,以防万一您之前未启用过检查完整错误详细信息的情况。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将Web App从Visual Studio代码部署到Azure App Service - Deploy Web App from Visual Studio Code to Azure App Service 将简单的 Express 应用程序部署到 Azure 应用程序服务 - Deploy simple Express app to Azure App Service 如何从VSTS部署到Azure应用服务? - How to deploy to azure app service from VSTS? 本地Azure移动服务/应用服务 - Azure Mobile Service/App Services On-Premises 使用 PM2 在 Azure 应用服务上部署 NodeJS 应用 - Deploy NodeJS app on Azure App service using PM2 无法在 Azure 应用服务 Linux 中部署 NodeJS(Fastify 应用) - Unable to deploy NodeJS (Fastify app) in Azure App Service Linux Azure移动服务到移动应用程序的转换自定义身份验证 - Azure Mobile Service to Mobile App Conversion Custom Authentication Azure YAML Deployment failing with "Error: Failed to deploy web package to App Service. Conflict (CODE: 409)" - Azure YAML Deployment failing with "Error: Failed to deploy web package to App Service. Conflict (CODE: 409)" 将 node.js 服务器和 angular 应用程序部署到 azure Z2567A5EC9705EB7AC2C984033E068 服务 - Deploy node.js server and angular app to azure web service Windows Azure虚拟机和云服务Node.js应用程序部署 - Windows Azure Virtual Machine and cloud service nodejs app deploy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM