Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aca4fd6 commit 14232f2Copy full SHA for 14232f2
index.js
@@ -13,7 +13,7 @@ const server = new ApolloServer({
13
mongoose.connect(process.env.DB_URL, {
14
useNewUrlParser: true
15
}).then(() => {
16
- server.listen().then(({ url }) => {
+ server.listen({ port: process.env.PORT || 4000 }).then(({ url }) => {
17
console.log(`🎉Server listening at ${url} !`)
18
})
19
},
0 commit comments