本文介绍了如何使用Ubuntu 14.04在AWS弹性魔豆的Python Django应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

欲确保发展环境中工作只是相同的生产环境。这是为了最大限度地减少它为我工作指指点点。

I want to ensure that the development environment to work just the same as the production environment. This is to minimise "it works for me" finger-pointing.

因此​​我的团队选择的Ubuntu 14.04作为操作系统。

Hence my team chose Ubuntu 14.04 as the operating system.

我们也希望部署在AWS上。

We also want to deploy on AWS.

由于我是通过使用弹性魔豆的QwikLabs例如跑步,我意识到,没有选择,选择的Ubuntu 14.04。

As I was running through the QwikLabs example on using Elastic Beanstalk, I realized that there is no choice to select Ubuntu 14.04.

我如何去部署在AWS EC2实例的Django应用程序是在Ubuntu 14.04上运行?

How do I go about deploying a Django app on a AWS EC2 instance that is running on Ubuntu 14.04?

感谢你。

推荐答案

AWS限制,根据弹性魔豆上运行的操作系统,因为它的。要获取有关操作系统和配置充分的灵活性,你需要使用EC2。

AWS limits the operating systems that run under Elastic Beanstalk, as it is Platform as a Service. To get full flexibility on operating systems and configuration, you'd need to use EC2.

有两种次优的解决方法,但:

There are two suboptimal workarounds, though:

  • use a Docker instance that is running Ubuntu
  • use this complicated hack to run Ubuntu in EB

这篇关于如何使用Ubuntu 14.04在AWS弹性魔豆的Python Django应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 04:02