Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

/.web-server-pid
/app/config/parameters.yml
# Uncomment if you'd like to not depoy schema changes with your code
#/app/config/graphql/*
/build/
/phpunit.xml
/var/*
Expand Down
8 changes: 8 additions & 0 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ mounts:
'web/var':
source: local
source_path: var
# Uncomment if GraphQL Schemas need be generated dynamically on server to reflect live repository status:
# 'app/config/graphql':
# source: local
# source_path: graphql
# To be prepared to move to cluster, please rather use e.g. persisted Redis instance.
'web/sessions':
source: local
Expand Down Expand Up @@ -155,6 +159,10 @@ hooks:
# - On database import/restore
# So in development it might be convenient to rebuild indexes, slowing down deploy time
##php bin/console ezplatform:reindex --processes=auto

# GraphQL: Usually you should generate schema locally & deploy with your code, but if not possible then
# uncomment this to automatically generate GraphQL schema on deploy. To use make app/config/graphql a mount.
##php bin/console ezplatform:graphql:generate-schema

# Post deploy hook, like deploy but after being deployed and live, for deploy tasks we can do asynchronously
#post_deploy: |
Expand Down
8 changes: 8 additions & 0 deletions app/config/graphql/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This directory is intentionally left empty. It is to be populated by automatically generated GraphQL schema configuration files. Schema generation is done with the following commands:

```
php bin/console ezplatform:graphql:generate-schema
php bin/console cache:clear
```

For more information on eZ Platform and GraphQL see: https://doc.ezplatform.com/en/latest/api/graphql/#toc