How to Deploy MERN (MongoDB Express React Node) App on Railway

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024

ความคิดเห็น • 11

  • @toliver1996
    @toliver1996 9 หลายเดือนก่อน +1

    Great video!

  • @qazxsw123100
    @qazxsw123100 18 วันที่ผ่านมา +1

    if i have both front and back in the same repo, should i do two different project and select the same repo? meaning, in the end i should have one service or two?

    • @AndysTechTutorials
      @AndysTechTutorials  17 วันที่ผ่านมา

      Yes, you should select the same repo both times and in the end, you will have two different services!

  • @jackhannon4322
    @jackhannon4322 8 หลายเดือนก่อน +2

    my backend comes up fine, but my frontend doesnt, the build is is running and the project gets deployed, but I get a 503 error. Should the backend host variable be the deployed backend domain?

    • @AndysTechTutorials
      @AndysTechTutorials  8 หลายเดือนก่อน

      Hey @jackhannon4322, yes, your backend host variable should be the url of your backend app.
      In my tutorial, my backend host variable was mernstackapp--production-ab1e.up.railway.app since that was the domain that railway generated for me at 2:25 for my backend app.

    • @jackhannon4322
      @jackhannon4322 8 หลายเดือนก่อน +1

      @@AndysTechTutorials Fixed, my start script was serving the dev build.

    • @AndysTechTutorials
      @AndysTechTutorials  8 หลายเดือนก่อน

      @jackhannon4322 Im glad you figured it out!

  • @jannickpedersen4620
    @jannickpedersen4620 6 หลายเดือนก่อน

    Man 1 month ago my Railway deploy worked fine. Yesterday i updated something in the code, pushed to my GitHub and railway will auto fetch that new push. But now my start command with npm run setup production fails, just suddenly it fails after like months where it worked xD

    • @AndysTechTutorials
      @AndysTechTutorials  6 หลายเดือนก่อน

      Hey @jannickpedersen4620, is there a specific error message you're seeing?

  • @bstaca
    @bstaca 8 หลายเดือนก่อน

    Where is MongoDB?

    • @AndysTechTutorials
      @AndysTechTutorials  7 หลายเดือนก่อน

      Hey Olivier, can you clarify what you mean?