Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14232f2

Browse files
committed
Update server port
1 parent aca4fd6 commit 14232f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const server = new ApolloServer({
1313
mongoose.connect(process.env.DB_URL, {
1414
useNewUrlParser: true
1515
}).then(() => {
16-
server.listen().then(({ url }) => {
16+
server.listen({ port: process.env.PORT || 4000 }).then(({ url }) => {
1717
console.log(`🎉Server listening at ${url} !`)
1818
})
1919
},

0 commit comments

Comments
 (0)