hasura / graphql-engine-heroku

Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events.
https://hasura.io
229 stars 234 forks source link

Deployment failing on Heroku #76

Open fchabouis opened 4 years ago

fchabouis commented 4 years ago

Hi, I've just tried to deploy hasura on heroku, following the doc. The deployment is successful, but when I open the app, I get an application error.

"Application error

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail "

Is the heroku deployment still maintained ? Thanks

ghost commented 4 years ago

Try running heroku logs --tail and paste the logs here.

zenflow commented 4 years ago

Or even just copy the logs from the Heroku web UI.. I wonder what the problem is.

mpycio commented 3 years ago

I'm having the same issue, used deploy button and app fails. Data from heroku logs:

2020-12-11T11:56:12.382069+00:00 heroku[web.1]: State changed from crashed to starting
2020-12-11T11:56:13.559351+00:00 heroku[web.1]: Starting process with command `/bin/sh -c graphql-engine\ \ \ \ \ --database-url\ \$DATABASE_URL\ \ \ \ \ serve\ \ \ \ \ --server-port\ \48678`
2020-12-11T11:56:16.097285+00:00 app[web.1]: Invalid option `--server-port'
2020-12-11T11:56:16.097308+00:00 app[web.1]:
2020-12-11T11:56:16.098165+00:00 app[web.1]: Usage: graphql-engine [--host <HOST>] [-p|--port <PORT>] [-u|--user <USER>]
2020-12-11T11:56:16.099017+00:00 app[web.1]: [--password <PASSWORD>] [--database-url <DATABASE-URL>]
2020-12-11T11:56:16.099775+00:00 app[web.1]: [-d|--dbname <DBNAME>]
2020-12-11T11:56:16.100907+00:00 app[web.1]: [-o|--pg-connection-options <DATABASE-OPTIONS>]
2020-12-11T11:56:16.101550+00:00 app[web.1]: [--retries NO OF RETRIES] COMMAND
2020-12-11T11:56:16.163516+00:00 heroku[web.1]: Process exited with status 1
mpycio commented 3 years ago

The problem was between the keyboard and the chair, although the error was a bit confusing. I've used an incorrect env key for DATABASE_URL (HASURA_GRAPHQL_DATABASE_URL) because naming consistency? 👍