当我尝试部署到Heroku时,构建成功了,但是失败了。你知道吗
在Heroku日志中——我得到: 进程退出,状态为127 bash:daphne:未找到命令
我试着找到Daphne安装目录,但是找不到
我的文件包含:
web: daphne chatapp.asgi:channel_layer --port $PORT --bind 0.0.0.0 -v2
chatworker: python manage.py runworker -v2
In my settings.py for the CHANNEL_LAYERS I have:
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [os.environ.get('REDIS_URL', 6379)],
},
},
}
在我的asgi.py公司我拥有的文件:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "chatapp.settings")
django.setup()
application = get_default_application()
channel_layer = get_channel_layer()
目前没有回答
相关问题 更多 >
编程相关推荐