Specify a port option

This commit is contained in:
Trevor Blades
2020-02-26 20:08:15 -08:00
parent 357e6acf41
commit d7bcd99410
5 changed files with 10 additions and 2 deletions

View File

@@ -136,6 +136,6 @@ const server = new ApolloServer({
}
});
server.listen().then(({url}) => {
server.listen({port: process.env.PORT}).then(({url}) => {
console.log(`🚀 Server ready at ${url}`);
});