Skip to content

Commit

Permalink
update for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
efir-tractatus committed Oct 23, 2020
1 parent ae8abac commit 6906b61
Show file tree
Hide file tree
Showing 4 changed files with 226 additions and 2 deletions.
223 changes: 223 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"dependencies": {
"apollo-server-express": "^2.18.2",
"cors": "^2.8.5",
"easygraphql-load-tester": "^2.0.3",
"express": "^4.17.1",
"graphql": "^15.3.0",
"graphql-tools": "^6.2.4",
Expand Down
2 changes: 1 addition & 1 deletion src/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const ObjectId = mongoose.Schema.Types.ObjectId

var connectWithRetry = function () {
return mongoose
.connect(localURI, {
.connect(remoteURI, {
useNewUrlParser: true,
})
.catch((error) => {
Expand Down
2 changes: 1 addition & 1 deletion src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ app.use(cors());
// })

app.get('/', (req, res) => {
res.status(200).send('Hello Universe');
res.status(200).send('Hello Universe this server is running a GraphQL endpoint so head over to /graphql');
});

app.listen({ port: 4000 }, () =>
Expand Down

0 comments on commit 6906b61

Please sign in to comment.