wesbos / advanced-react-rerecord

Trying things out. Feel free to follow along
247 stars 36 forks source link

Hosting: #8

Closed wesbos closed 4 years ago

wesbos commented 4 years ago

Digital Ocean with pm2 and Nginx Heroku

Not sure if Zeit Now will work as they can't really host node apps

mckernanin commented 4 years ago

Curious as to why you said now "can't really host node apps"? What issues have you had?

alvaaz commented 4 years ago

I tried with Heroku and had a good result

wesbos commented 4 years ago

apparently it is possible on now! https://github.com/mitchellhamilton/keystonejs-now-example

wesbos commented 4 years ago

Heroku for sure will work :)

alvaaz commented 4 years ago

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);
  }
}
mckernanin commented 4 years ago

Ah ok specifically keystone + node, not node in general. 👍

wesbos commented 4 years ago

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

Oluwasetemi commented 4 years ago

Having digital ocean for both the frontend and backend using nginx and pm2 will be so dope

ashhitch commented 4 years ago

DigitalOcean with pm2 and Nginx or maybe Caddy?

wesbos commented 4 years ago

Yeah def digital ocean + nginx + pm2. It's what I use on most of my apps and i love it.

GPorter43 commented 4 years ago

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?

wesbos commented 4 years ago

Yep - it will all be on a single droplet :)

fd1az commented 4 years ago

Digital Ocean with pm2 and Nginx

rhiannonmonks commented 4 years ago

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!

bezvoshchuk commented 4 years ago

Is AWS an option?

taylor-lindores-reeves commented 4 years ago

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/

bababaff commented 4 years ago

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.

Asjas commented 4 years ago

@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 😄

wesbos commented 4 years ago

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 :)