Django project to Azure Cloud Services without Vis

2019-09-03 19:27发布

I'm exploring MS Azure, and have a very simple one-app Django project that I'd like to use with Cloud Services, but I can't figure out how to do it.

I've got the Node-based Azure cross-platform CLI tools installed, and I'm trying to figure out the process of creating the necessary infrastructure to stick the Django project on Azure Cloud Services (note: not Azure VM, not Azure Web Sites). The tutorials I've seen use Visual Studio to do this, but I'm on Mac/Linux.

There must be a process how to produce the necessary files (.cspkg, .cscfg etc.) without VS, but I haven't found any tutorials or documentation about it. How do you generate or construct those files, and any other boilerplate, without the use of VS, and what's the process of actually deploying the code to the cloud?

1条回答
smile是对你的礼貌
2楼-- · 2019-09-03 19:33

best to use is powershell : you'll need "New-AzureServiceProject", "Add-AzureDjangoWebRole" and in the end you need to package it with Save-AzureServiceProjectPackage, afterwards you can upload it either through the portal or through powershell with the cmdlets New-AzureService and "Publish-AzureServiceProject" hope this helps you?

查看更多
登录 后发表回答