在 AWS Elastic Beanstalk 上部署 Django 应用程序:应用程序 url 仅显示"/"的索引 [英] Deploying Django app on AWS Elastic Beanstalk : Application url shows only " Index of / "

查看:31
本文介绍了在 AWS Elastic Beanstalk 上部署 Django 应用程序:应用程序 url 仅显示"/"的索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署这个:

https://github.com/agrawal-mohit/kudisavers

在 AWS 上使用 EBS.

on AWS using EBS.

但登陆页面只显示Index of/":http://kudisavers.elasticbeanstalk.com/

But the landing page show only " Index of / " : http://kudisavers.elasticbeanstalk.com/

我对部署等方面缺乏经验,需要一些帮助.这里出了什么问题?

I'm inexperienced with deployment et all and need some help on this. What is going wrong here?

非常感谢!

推荐答案

如果登陆页面只显示Index of/",您的项目部署成功,但在运行 django 应用程序 (./manage py) 时失败.因此,在您的项目目录中尝试 ~$ eb logs 并在运行您的应用程序时发现错误.就我而言,有默认包pkg-resources".您应该从 requirements.txt 中删除它.

If landing page show only " Index of / ", your project was deployed successful, but it failed while running django app (./manage py). So try ~$ eb logs in your project dir and find error while running your app. In my case there was default package "pkg-resources". You should remove it from requirements.txt .

这篇关于在 AWS Elastic Beanstalk 上部署 Django 应用程序:应用程序 url 仅显示"/"的索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆