我完成了我一直在做的一个Django项目,当我从PHP切换到Python时,我害怕的一天现在就在我身上-部署。我总觉得部署和使用Django应用程序并不容易。我在elasticbeanstalk环境中使用了eb deploy
我的Django应用程序,但是当我打开mysite.elasticbeanstalk.com
时,我得到的索引是/
mysite.config网站:
container_commands:
01_syncdb:
command: "django-admin.py syncdb --noinput"
leader_only: true
install_MySQL-python:
command: /opt/python27/run/venv/bin/easy_install MySQL-Python==1.2.4
option_settings:
- namespace: aws:elasticbeanstalk:container:python:staticfiles
option_name: WSGIPath
value: mysite/wsgi.py
- option_name: DJANGO_SETTINGS_MODULE
value: mysite.settings
- option_name: AWS_SECRET_KEY
value: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- option_name: AWS_ACCESS_KEY_ID
value: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
我也试过command: "manage.py syncdb --noinput"
,但是没有用。在
文件夹结构:
^{pr2}$当我检查错误日志时,我得到的是:
-------------------------------------
/opt/python/log/httpd.out
-------------------------------------
-------------------------------------
/var/log/httpd/error_log
-------------------------------------
[Mon Mar 09 12:38:02.208709 2015] [suexec:notice] [pid 6157] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 09 12:38:02.259728 2015] [auth_digest:notice] [pid 6157] AH01757: generating secret for digest authentication ...
[Mon Mar 09 12:38:02.260895 2015] [lbmethod_heartbeat:notice] [pid 6157] AH02282: No slotmem from mod_heartmonitor
[Mon Mar 09 12:38:02.261027 2015] [:warn] [pid 6157] mod_wsgi: Compiled for Python/2.7.5.
[Mon Mar 09 12:38:02.261044 2015] [:warn] [pid 6157] mod_wsgi: Runtime using Python/2.7.8.
[Mon Mar 09 12:38:02.328774 2015] [mpm_prefork:notice] [pid 6157] AH00163: Apache/2.4.10 (Amazon) mod_wsgi/3.5 Python/2.7.8 configured -- resuming normal operations
[Mon Mar 09 12:38:02.328851 2015] [core:notice] [pid 6157] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
我不知道过去五天我做错了什么。在
目前没有回答
相关问题 更多 >
编程相关推荐