menu

ZEIT

Our mission is to make cloud computing as easy and accessible as mobile computing. You can find our Next.js community here.

Channels
Team

Hasura/graphql-engine deployment

September 28, 2018 at 9:18pm
The ZEIT community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →

Hasura/graphql-engine deployment

September 28, 2018 at 9:18pm (Edited 2 years ago)
I would like to experiment with hosting the Hasura on now.. (The data layer, not the postgresql database). What would be the best way to translate the command below into a dockerfile that can be deployed with now including the database-url env variable? I can't quite tease out what the CMD portion would be here.
docker run -d -p 8080:8080 hasura/graphql-engine:v1.0.0-alpha21 graphql-engine --database-url postgres://username:[email protected]:port/dbname serve --enable-console

September 28, 2018 at 9:50pm
Disregard.. got it:
Dockerfile:
FROM hasura/graphql-engine:latest
CMD ["graphql-engine", "serve", "--enable-console"]
now.json:
{
"name": "hasura-now",
"type": "docker",
"features": {
"cloud": "v2"
},
"env": {
"HASURA_GRAPHQL_DATABASE_URL": "postgres://username:[email protected]:port/dbname"
}
}
  • reply
  • like

September 29, 2018 at 6:07pm
please let me know how it goes. I tried deploying Hasura to Now earlier this week and the service kept getting regularly restarted. I reached out to the Hasura developers. They said they were going to look into it further, and post a thread here if they needed to. For now I'm hosting it on Heroku.
  • reply
  • like

October 6, 2018 at 3:46pm
: Shahidh from Hasura here. I tried it out, but the first request after timeout always throws 504. Posted a detailed note here: https://spectrum.chat/thread/343b2d12-48ba-4a38-88e1-a08106bbbbf0
  • reply
  • like
Did you get it working properly?
  • reply
  • like

October 9, 2018 at 5:15pm

August 23, 2019 at 7:47am
Hi, anybody managed to deploy hasura graphql-engine on now? just checking out if it is possible :)
  • reply
  • like

August 27, 2019 at 4:09pm
I would be interested as well. Is it actually possible to run hasura on now v2?
  • reply
  • like

October 3, 2019 at 10:43pm
Same question here, is it possible to run Hasura on now 2.0?
  • reply
  • like

February 25, 2020 at 8:11pm
Same question here, any help please?
  • reply
  • like
private
This channel has been archived