Skip to content

Commit

Permalink
update dockerfile for fly.io
Browse files Browse the repository at this point in the history
  • Loading branch information
madhums committed Oct 11, 2023
1 parent ad6cc11 commit b5b786e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ COPY --from=build /app /app

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD [ "npm", "run", "start" ]
CMD [ "npm", "run", "prod" ]
14 changes: 5 additions & 9 deletions config/env/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,21 @@ module.exports = {
twitter: {
clientID: process.env.TWITTER_CLIENTID,
clientSecret: process.env.TWITTER_SECRET,
callbackURL:
'https://nodejs-express-demo.fly.dev/auth/twitter/callback/'
callbackURL: 'https://nodejs-express-demo.fly.dev/auth/twitter/callback/',
},
github: {
clientID: process.env.GITHUB_CLIENTID,
clientSecret: process.env.GITHUB_SECRET,
callbackURL:
'https://nodejs-express-demo.fly.dev/auth/github/callback'
callbackURL: 'https://nodejs-express-demo.fly.dev/auth/github/callback',
},
linkedin: {
clientID: process.env.LINKEDIN_CLIENTID,
clientSecret: process.env.LINKEDIN_SECRET,
callbackURL:
'https://nodejs-express-demo.fly.dev/auth/linkedin/callback'
callbackURL: 'https://nodejs-express-demo.fly.dev/auth/linkedin/callback',
},
google: {
clientID: process.env.GOOGLE_CLIENTID,
clientSecret: process.env.GOOGLE_SECRET,
callbackURL:
'https://nodejs-express-demo.fly.dev/auth/google/callback'
}
callbackURL: 'https://nodejs-express-demo.fly.dev/auth/google/callback',
},
};

0 comments on commit b5b786e

Please sign in to comment.