diff --git a/sequelize/seeders/memeolist-example-postgres.js b/sequelize/seeders/memeolist-example-postgres.js index 992735b..129b9f8 100644 --- a/sequelize/seeders/memeolist-example-postgres.js +++ b/sequelize/seeders/memeolist-example-postgres.js @@ -7,7 +7,7 @@ const time = new Date() const datasources = [ { id: 1, - name: 'nedb_postgres', + name: 'memeolist_postgres', type: 'Postgres', config: `{"options":{ "user": "postgresql", diff --git a/server/config/index.js b/server/config/index.js index d1e26ef..c37f311 100644 --- a/server/config/index.js +++ b/server/config/index.js @@ -41,7 +41,7 @@ const config = { endpointURL: '/graphql', // if you want GraphiQL enabled query: graphiqlQueryFileContent, variables: graphiqlVariableFileContent, - subscriptionsEndpoint: `ws://${hostname()}:${port}/subscriptions` + subscriptionsEndpoint: process.env.GRAPHIQL_SUBS_ENDPOINT || `ws://${hostname()}:${port}/subscriptions` }, postgresConfig: { database: process.env.POSTGRES_DATABASE || 'aerogear_data_sync_db',