2017-06-19 43 views
1

我想根据这个指示,部署postgrest v中的Heroku 0.4.2.0应用程序(https://github.com/begriffs/postgrest/releases/tag/v0.4.2.0):部署的Heroku postgrest +数据库不断崩溃

https://postgrest.com/en/v3.2/admin_deployment.html#heroku(这是旧版本,但总体上说明可行)

我已经有一个部署的数据库(通过的Heroku Postgres的)与我的Heroku的帐户1台,所以我一直在想我的数据库与postgrest连接:

DB_URL:Postgres的:// mpdwpnlqhwsosk:5abeb772ff431ef99e975be287970c3412174b331926b189d6485277f41d65d1 @ ec2-174- 129-224-33.compute-1.amazonaws.com:543 2/da5a8m1p77diab

所以,我的应用程序只是崩溃(H10错误)。我看不到桌子等。虽然,我可以通过pgAdmin成功连接到这个数据库

是否有我做错了事,或者是某种讨厌的错误?

日志: 2017-06-19T09:53:52.579013 + 00:00的Heroku [web.1]:状态从开始变为坠毁

2017-06-19T09:53:52.568134 + 00:00的Heroku [web.1]:流程退出,状态1

2017-06-19T10:38:45.049215 + 00:00的Heroku [web.1]:状态改变从坠落到起始

2017-06- 19T10:38:45.838847 + 00:00 heroku [web.1]:用命令启动程序./env-to-config ./postgrest postgrest.conf

2017-06-19T10:38:47.811334 + 00:00 heroku [web.1]:进程退出状态1

2017-06-19T10:38:47.752947 + 00:00 app [web.1]: ConfigError {configErrorLocation = Key“”“secret-is-base64”,configConversionError =只是[ConversionError {conversionErrorLoc =“boolValue”,conversionErrorWhy = TypeError,conversionErrorVal = Just(String“false”),conversionErrorType = Just Bool,conversionErrorMsg = Nothing} ]}

2017-06-19T10:38:47.822918 + 00:00的Heroku [web.1]:状态从开始变为坠毁

2017-06-19T11:04:22.519115 + 00:00的Heroku [router]:at = error code = H10 desc =“App crashed”method = GET path =“/”host = agile-mesa-95349.herok uapp.com request_id = 7f7c6d70-c23b-400a-aec8-83758cb226cf fwd =“109.184.214.45”dyno = connect = service = status = 503 bytes = protocol = https

+0

这不是你的数据库崩溃。 [H10错误](https://devcenter.heroku.com/articles/error-codes#h10-app-crashed)表示进程(本例中为“web”)已崩溃。尝试拖拽日志('heroku logs --tail'),然后重新启动应用程序('heroku restart'),然后您应该看到导致应用程序崩溃的错误。 –

回答

0

顺便说一下,这可能不应该是downvoted 。它看起来像是最近修复的一个bug的体现https://github.com/begriffs/postgrest/pull/897

该修复程序尚未成为发行版的一部分,但将在下一个版本中发布。