mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
76ceb707f4
This PR builds console static assets into the server docker image at `/srv/console-assets`. When env var `HASURA_GRAPHQL_CONSOLE_ASSETS_DIR=/srv/console-assets` or flag `--console-assets-dir=/srv/console-assets` is set on the server, the files in this directory are served at `/console/assets/*`. The console html template will have a variable called `cdnAssets: false` when this flag is set and it loads assets from server itself instead of CDN. The assets are moved to a new bucket with a new naming scheme: ``` graphql-engine-cdn.hasura.io/console/assets/ /common/{} /versioned/<version/{} /channel/<channel>/<version>/{} ``` Console served by CLI will still load assets from CDN - will fix that in the next release. |
||
---|---|---|
.. | ||
assets | ||
build | ||
cmd/hasura | ||
commands | ||
migrate | ||
telemetry | ||
update | ||
util | ||
version | ||
.gitignore | ||
.realize.yaml | ||
cli_test.go | ||
cli.go | ||
CONTRIBUTING.md | ||
directory.go | ||
get.sh | ||
global_config.go | ||
Gopkg.lock | ||
Gopkg.toml | ||
Makefile | ||
README.md |
Hasura GraphQL Engine CLI
Installation
Download GraphQL Engine CLI bundled with Hasura CLI
- Linux/macOS
curl -L https://cli.hasura.io/install.sh | bash
- Windows: installer
Download using go get
go get github.com/hasura/graphql-engine/cli/cmd/hasura
Build from source
git clone https://github.com/hasura/graphql-engine
cd graphql-engine/cli
make deps
make build
# binaries will be in _output directory
Usage
hasura init --directory <my-project> --endpoint <graphql-endpoint> --admin-secret <admin-secret>
cd <my-project>
hasura console
Contributing
Checkout the contributing guide.