Closed wesbos closed 4 years ago
Curious as to why you said now "can't really host node apps"? What issues have you had?
I tried with Heroku and had a good result
apparently it is possible on now! https://github.com/mitchellhamilton/keystonejs-now-example
Heroku for sure will work :)
Heroku works but you have to make some settings:
const keystone = new Keystone({
....
secureCookies: false
});
module.exports = {
keystone,
apps: [
new GraphQLApp(),
new AdminUIApp({
enableDefaultRoute: true,
authStrategy
})
],
configureExpress: app => {
app.set("trust proxy", 1);
}
}
Ah ok specifically keystone + node, not node in general. 👍
Well in my experience I haven't had a node app that just works on Now 2. all of them require you to change how the app is written
Having digital ocean for both the frontend and backend using nginx and pm2 will be so dope
DigitalOcean with pm2 and Nginx or maybe Caddy?
Yeah def digital ocean + nginx + pm2. It's what I use on most of my apps and i love it.
Are you still going to demonstrate hosting the front and back end on a single droplet/instance? If not would you be able to add that to another course or YouTube video?
Yep - it will all be on a single droplet :)
Digital Ocean with pm2 and Nginx
Can anyone explain why Now 2 does not work with node easily (both from a theoretical and practical standpoint?) When you say, it requires to change how the app is written, I would like to better understand this? Thanks!
Is AWS an option?
Hey Wes, I currently have an app up and running using what I learnt from you. It uses Prisma, Docker, MongoDB, etc and is hosted on the cheapest DigitalOcean droplet using nginx and pm2 - it works perfectly! https://flamboyant-pasteur-5ec451.netlify.app/
why this is taking so long..:(
I'm waiting for the update to buy advancedreact course.
I check this repo almost every day but still, this hosting issue isn't resolved yet.
I think you already completed recordings except for this hosting one.
Take as much time you want for the module 10. Please add the rest of the modules.
Thank you, I really appreciate your work. you're really a very good instructor.
@cjschamith Wes is busy finishing his Gatsby course recording before he starts recording this course update. 🙂
The hosting isn't an issue, Wes already chose Digital Ocean 😄
thanks everyone! I know this should have been out sooner, but many of these items are out of my control. Will be recorded right after my gatsby course. Thanks for your patience :)
Digital Ocean with pm2 and Nginx Heroku
Not sure if Zeit Now will work as they can't really host node apps