How To Publish a .NET 6 Application To Railway

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • Code snippets mentioned in the video:
    Connection Helper Class:
    gist.github.co...
    Migration Data Helper:
    gist.github.co...
    Code to be added to the program.cs file to call the migrations helper:
    gist.github.co...
    -----------------------------------------------------
    👨‍🏫 Self-Paced .NET Bootcamp Course (Includes FREE courses)
    learn.coderfou...
    🙌 Support the channel and become a channel member
    / @coderfoundry
    📖 Buy the Book: Breaking the Code
    geni.us/breaki...
    👕 Grab some CF merch
    teespring.com/...
    🗣 Join us on Discord
    ​ / discord
    👓 Buy the blue light blocking glasses we use at CF. Pixel Eyewear Glasses ($5 off with coupon code CODERFOUNDRY)
    www.pixeleyewe...
    💻 How to get your first coding job
    coderfoundry.co...
    🎥 The equipment we use at Coder Foundry
    kit.co/CoderFo...
    DISCLAIMER: This video and description may contain affiliate links, which means that if you click on one of the product links, we’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!

Комментарии • 73

  • @corbynaltman1020
    @corbynaltman1020 2 года назад +3

    Perfect timing :) Thank you!

  • @RogueCoder7505
    @RogueCoder7505 5 месяцев назад +1

    this works like a charm, even for a .net web api. Thank you

    • @CoderFoundry
      @CoderFoundry  5 месяцев назад

      Glad to hear that

    • @RogueCoder7505
      @RogueCoder7505 2 месяца назад

      @@CoderFoundry how would you deploy a blazor wasm app to railway? Can you demo that? I am stuck.

  • @danielclow
    @danielclow Год назад +3

    nice explanation! thanks!
    18:12 have you already test it for 30/31 days?

  • @MrFelipefronte
    @MrFelipefronte 11 месяцев назад +3

    HI, greetings from Brazil 🌎

  • @IvanRandomDude
    @IvanRandomDude Год назад +1

    5:08 Well, that's a bs from the beginning. What if we have a solution with multiple projects (libraries)? This is so limiting and almost makes it useless for anything serious.

  • @brawlboy1382
    @brawlboy1382 3 месяца назад

    Thanks, do I store variables in launchSettings or do I get them from Railway?

  • @nafisishtiaque
    @nafisishtiaque 2 года назад +2

    What would you learn between the back end .net,spring boot or node

  • @derianc
    @derianc Год назад +1

    I tried to deploy the standard "Weather Forecast" swagger web api app to railway but I'm getting a 503 error
    From the default code, I updated the culture and updated to port 3000 but I'm still getting an error.
    Any ideas?

    • @matiaslokman
      @matiaslokman Год назад

      Im with the same problem, did you manage to solve it?

    • @derianc
      @derianc Год назад

      @@matiaslokman Sadly, was not able to figure it out. Please update the thread if you find a solution

  • @emreaka3965
    @emreaka3965 2 года назад +1

    Thanks! 😼

  • @joaoemanuel7371
    @joaoemanuel7371 Месяц назад

    broo, how did i connect my database with my application? im trying, but nothing happens

  • @sudidav
    @sudidav 2 года назад +1

    Seems to be fair. What about digital ocean? They seem to have the 5$ plan too.

    • @CoderFoundry
      @CoderFoundry  2 года назад

      We are moving to railway but the first $5.00 is free. After that you pay its a pretty good deal.

  • @zblackarch
    @zblackarch 7 месяцев назад

    Hi, Can I auto escaling too? the sql and the API?

  • @abderrahmandouara9973
    @abderrahmandouara9973 2 года назад +1

    Hi,
    A question outside the scope of this video, I have seen the developer portfolio video and it is really really helpful, thank you very much for it.
    I have noticed that companies tend toward those applicants who have projects in their portfolio which are very similar to what they are doing, with competition on React jobs getting higher and higher, specialization on a specific niche becomes important, a company which is building data intensive applications with charts and complex tables for instance, won't be interested in someone who have a blog on project on his portfolio. according to your experience which niche is most demanded for React? would you suggest any projects?
    Really appreciate your help 🙏

    • @CoderFoundry
      @CoderFoundry  2 года назад +1

      If you are interviewing for react role build projects in react. If data visualization is something roles are looking for, build a project using those tools.

  • @MrJudi2222
    @MrJudi2222 2 месяца назад

    This method works with blazor auto?

    • @CoderFoundry
      @CoderFoundry  Месяц назад

      You can push any blazor app to railway the render mode does not matter.

  • @ashimov1970
    @ashimov1970 Год назад

    I wonder how I can deploy my backend app container image to Railway given my DB is PlanetScale

  • @xternalmega
    @xternalmega Год назад

    It gives me an error stating "Package MessagePackAnalyzer, version 2.4.35 was not found." even though I have triple checked that it was downloaded

  • @guilhermemarques6713
    @guilhermemarques6713 Год назад

    Hi, I use SqlServer in my project, is there a way to create such a sql database?

    • @CoderFoundry
      @CoderFoundry  Год назад

      You would have to use a docker file with sql server in it. But you can do it.

  • @ExpatTraderFX
    @ExpatTraderFX Год назад

    im trying to have my rest api upload but i keep getting a build error

  • @guilhermemarques6713
    @guilhermemarques6713 Год назад

    Friend how did you configure your git hub, I've already gave permission to the railway, but it does not appear when I click on deploy on github

    • @CoderFoundry
      @CoderFoundry  Год назад

      We have a free course on Learn.coderfoundry.com

  • @JuggernOtt81
    @JuggernOtt81 2 года назад

    i'm confused on the "DataHelper (run a db migrate from C#)" - can't figure out how to call it. even plopped it right in the startup.cs and gave it breakpoints that never hit. feeling like i never even learned how to turn on a computer at this point. - it's 3:30 am, i might just be tired... any help is appreciated.

    • @CoderFoundry
      @CoderFoundry  2 года назад +1

      Add the code from this gist to program.cs: gist.github.com/GistCF/4372c8fb77302f6fd996be90fcd025af

  • @Aslam2k
    @Aslam2k Год назад

    How does this work if you have multiple projects in one solution and the main project has dependencies to other projects

    • @CoderFoundry
      @CoderFoundry  Год назад

      I have not tried that setup. I would use a container launch the container from the cli.

  • @wesleymatos1987
    @wesleymatos1987 Год назад

    Very Good! Thank you!

  • @peterkrizan6521
    @peterkrizan6521 Год назад

    Hi, thanks for sharing. Just one question is the following video ongoing? I would like to know the final price at the end of the month.

    • @CoderFoundry
      @CoderFoundry  Год назад +2

      I will check it and get back to you

  • @jeffsherman9638
    @jeffsherman9638 10 месяцев назад

    I have a full stack project using webforms that didn't utilize migrations (like MVC) but it does use a Postgre database. Will I need an additional setup for this?

    • @CoderFoundry
      @CoderFoundry  10 месяцев назад

      You need a way to publish your database to railway.

    • @jeffsherman9638
      @jeffsherman9638 10 месяцев назад

      I am setup for railway but didn't use entity to build the app. I manually created the database. Looks like the method you described for railway may need to have entity in the project?

    • @CoderFoundry
      @CoderFoundry  10 месяцев назад

      Yes. But you can do it manually.

  • @jeffsherman9638
    @jeffsherman9638 2 года назад

    My . net dB uses MySQL, do I follow the same rules as PostgreSQL?

    • @CoderFoundry
      @CoderFoundry  2 года назад

      I have not tried it but it should be similiar.

  • @FacePlat3
    @FacePlat3 Год назад

    Do you have a MySQL database type of deployment?

    • @CoderFoundry
      @CoderFoundry  Год назад

      We use postgres because it is a free option

  • @miguelrodriguez1479
    @miguelrodriguez1479 2 года назад

    I also move my stuff to railway, looks like they will be getting a high boost in their customer base

    • @CoderFoundry
      @CoderFoundry  2 года назад +2

      Yeah they have seen a massive growth spike for sure! How are you finding railway so far?

  • @anilkarasahh
    @anilkarasahh 2 года назад

    Where do I add the ManageData method to?
    Other than that, is there a way to deploy Docker images for free. I think it is a better solution to go with rather than updating Solution files etc.

    • @CoderFoundry
      @CoderFoundry  2 года назад +2

      you can add docker support to any .net project. Railway will see your docker file and build it. I added a new gist to the comments showing you how to call ManageData from program.cs
      gist.github.com/GistCF/4372c8fb77302f6fd996be90fcd025af

    • @anilkarasahh
      @anilkarasahh 2 года назад

      @@CoderFoundry Thank you. Railway doesn’t seem to recognize the port. In the documentation, it says that the server should be listening on ‘0.0.0.0:$PORT’ but I haven’t been able to solve it. Any ideas?

  • @wizkid7717
    @wizkid7717 2 года назад

    I am pursuing a career to become a Front end web developer. Do you have a program for that On your website ? Cheers.

    • @CoderFoundry
      @CoderFoundry  2 года назад +1

      We don't explicitly have a frontend only course but a lot of our corses cover front end technologies (HTML, Bootstrap, Javascript). We build lots of frontend only projects at the beginning of our compete bootcamp course.

    • @wizkid7717
      @wizkid7717 2 года назад

      @@CoderFoundry Thanks for getting back to me. Awesome, That's fair enough, I will join the self paced online program.cheers.

  • @emmanuelokpukpan8456
    @emmanuelokpukpan8456 Год назад

    how would this work with multi-project solutions?

  • @mohamadfirdausfitribinisma4789

    Thanks man this really helps me alot!

  • @saeedom100
    @saeedom100 2 года назад +1

    Great explanation as always!
    If I'm not mistaken, Azure also has an "almost free" plan for students and devs that charges you depending on actual usage. What do you think of it?
    Thanks.

    • @CoderFoundry
      @CoderFoundry  2 года назад +6

      It's for 12 months after that you pay.

    • @billnalen
      @billnalen Год назад

      @@CoderFoundry They have a free tier for static web apps (including custom domain names) and a free tier for app services (doesn't include a custom domain name) but they don't have a free sql database option.

  • @winstochurgle9133
    @winstochurgle9133 Год назад

    Did you delete my question?

    • @CoderFoundry
      @CoderFoundry  Год назад

      Not sure what was your question?

    • @winstochurgle9133
      @winstochurgle9133 Год назад

      @@CoderFoundry ​It looks like my comment was deleted with github repository link. Alright.
      I can't clearly understand why my tables aren't created in the database and migrations aren't loaded.
      Would you show me your Postgres connection string in appsettings.json?
      Here's my for example:
      "PostgresDbConnection": "Host=localhost;Database=DbName;Username=postgres;Password=MyPassword"

  • @xternalmega
    @xternalmega 3 месяца назад

    Really hilarious that my issue never got attention even a year later. Maybe if I was willing to pay you $50 to help them it would have gotten somewhere. I have the money to spend now, but what about the "college student" you refer to who couldn't afford the $16 a month for hosting sites? How is anyone starting out in this field supposed to know what a message pack analyzer is? It really reinforces the idea that this industry is being gatekept by the elite

    • @diamond8467
      @diamond8467 10 дней назад

      use google, mate. Seems like you are angry at the person who literally tries his best to help for free, just because he missed your question. No one can solve all your problems, it is time to grow up and use resources instead of being mad at others. No one got anywhere without putting in tons of work themselves