env.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. default_env: &default_env
  2. WARTHOG_INTROSPECTION: true
  3. WARTHOG_SUBSCRIPTIONS: true
  4. WARTHOG_PLAYGROUND: true
  5. WARTHOG_DB_SYNCHRONIZE: false
  6. ## if the DB is synced, the new columns
  7. ## created by migrations are dropped, no good
  8. ## one should run `WARTHOG_DB_SYNCHRONIZE=true yarn sync` manually instead
  9. WARTHOG_DB_OVERRIDE: false
  10. WARTHOG_DB_DATABASE: ${env:DB_NAME}
  11. WARTHOG_DB_USERNAME: ${env:DB_USER}
  12. WARTHOG_DB_PASSWORD: ${env:DB_PASS}
  13. WARTHOG_DB_HOST: ${env:DB_HOST}
  14. WARTHOG_DB_PORT: ${env:DB_PORT}
  15. WARTHOG_APP_PORT: ${env:GRAPHQL_SERVER_PORT}
  16. WARTHOG_APP_HOST: ${env:GRAPHQL_SERVER_HOST}
  17. GRAPHQL_SERVER_PORT: ${env:GRAPHQL_SERVER_PORT}
  18. GRAPHQL_SERVER_HOST: ${env:GRAPHQL_SERVER_HOST}
  19. PGDATABASE: ${env:DB_NAME}
  20. PGUSER: ${env:DB_USER}
  21. PGPASSWORD: ${env:DB_PASS}
  22. PGHOST: ${env:DB_HOST}
  23. PGPORT: ${env:DB_PORT}
  24. development:
  25. <<: *default_env
  26. DEBUG: 'qnode-cli:*'
  27. NODE_ENV: development
  28. staging:
  29. <<: *default_env
  30. production:
  31. NODE_ENV: production
  32. WARTHOG_DB_ENTITIES: dist/src/**/*.model.js
  33. WARTHOG_DB_SUBSCRIBERS: dist/src/**/*.model.js
  34. WARTHOG_RESOLVERS_PATH: dist/src/**/*.resolver.js
  35. WARTHOG_DB_MIGRATIONS: dist/db/migrations/**/*.js
  36. DEBUG: 'qnode-cli:*'
  37. <<: *default_env