我正在尝试将多容器 Web 应用程序部署到 Azure 应用服务。该应用程序从本地计算机上的图像运行良好,但是当我尝试在应用程序服务上运行它时,它不起作用,并且没有错误消息。在日志部分,它显示“检索日志时出错”。
下面是我的 docker compose 文件的 YAML,我尝试了各种不同的版本,但我永远无法从 Azure 获取任何错误消息。
我究竟做错了什么?如何从 Azure 应用服务获取 Docker 日志?
version: '3.7'
services:
web:
image: ptd_reports_app
command: gunicorn TransitData.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/home/PublicTransitDataReportingPortal/web/staticfiles
expose:
- 8000
restart: always
environment:
DEBUG=1
SECRET_KEY=<secret key>
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
EMAIL_HOST_PASSWORD=<email password>
nginx:
image: ptd_reports_nginx
restart: always
volumes:
- static_volume:/home/PublicTransitDataReportingPortal/web/staticfiles
ports:
- 1337:80
depends_on:
- web
volumes:
static_volume:
Run Code Online (Sandbox Code Playgroud) 我试图在RStudio的RMarkdown HTML输出文件的头部添加一个HTML元标记.特别是我试图在我们的内部网上插入以下内容来解决IE兼容性问题.
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
Run Code Online (Sandbox Code Playgroud)
任何有关如何最好地完成此任务的帮助将不胜感激.
我想为R googleVis时间线图设置一个特定的开始和结束日期.例如,我希望下面的图表从1780开始到1815结束.我搜索了文档并尝试了其他图表类型的一些选项,但我无法让它们中的任何一个工作.
library(googleVis)
datTL <- data.frame(Position=c(rep("President", 3), rep("Vice", 3)),
Name=c("Washington", "Adams", "Jefferson",
"Adams", "Jefferson", "Burr"),
start=as.Date(x=rep(c("1789-03-29", "1797-02-03",
"1801-02-03"),2)),
end=as.Date(x=rep(c("1797-02-03", "1801-02-03",
"1809-02-03"),2)))
Timeline <- gvisTimeline(data=datTL,
rowlabel="Name",
barlabel="Position",
start="start",
end="end",
options=list(timeline="{groupByRowLabel:false}",
backgroundColor='#ffd',
height=350,
colors="['#cbb69d', '#603913', '#c69c6e']"))
plot(Timeline)
Run Code Online (Sandbox Code Playgroud)