Skip to content
0:00 / 0:00

#dotnet#railway#deployment

How To Publish a .NET 6 Application To Railway

Coder Foundry

98K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

12K views4 years ago2 recommendations

Cloud and DevOpsWeb developmentDocker and containersHTTP, REST and GraphQLC# and .NET

A step-by-step guide on deploying and hosting a .NET 6 Web API or MVC application on the Railway platform.

Code snippets mentioned in the video: Connection Helper Class: gist.github.com/GistCF/4a2e6afdd8fb184c7381d4bb4577ffb4 Migration Data Helper: gist.github.com/GistCF/d5051f7b69d7b995b65d4d34325f43a9 Code to be added to the program.cs file to call the migrations helper: gist.github.com/GistCF/4372c8fb77302f6fd996be90fcd025af ----------------------------------------------------- 👨‍🏫 Self-Paced .NET Bootcamp Course (Includes FREE courses) learn.coderfoundry.com/ 🙌 Support the channel and become a channel member youtube.com/channel/UCTGgxc_jIz2z9mpfInuPHWQ/join 📖 Buy the Book: Breaking the Code geni.us/breakingthecode-davis 👕 Grab some CF merch teespring.com/stores/coderfoundry 🗣 Join us on Discord ​discord.gg/qUrq7ny 👓 Buy the blue light blocking glasses we use at CF. Pixel Eyewear Glasses ($5 off with coupon code CODERFOUNDRY) pixeleyewear.com/?ref=jsFMa8a4kaevt 💻 How to get your first coding job coderfoundry.com/jobroadmap 🎥 The equipment we use at Coder Foundry kit.co/CoderFoundry 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!

Why it's here

2 people recommend this

What people say. Recommended as a practical guide for hosting ASP.NET Web APIs and Blazor apps on Railway.

u/felix2000jpin r/dotnet • Recommends

On “Host ASP.NET Web API on railway.app”

It is possible to host a webapi .NET on railway with a few tweaks. This video shows you how [video I actually think it is a very good option for personal projects (not sure how it would scale), but if you know better options please tell me, I am looking for those.

u/nearfal08in r/dotnet • Recommends

On “Which Heroku alternatives suitable for ASP. NET do you know?”

I recently found a great tutorial on hosting asp.net apps on railway.app. I’ve tested it with blazor server apps as well. You get a free set of hosting hours every month. link to this video

u/Righteous_Warriorin r/dotnet • Mentions

how do I deploy a deploy a hosted blazor wasm app from my linux pc? I currently don't have my .net web api serve my blazor wasm app. The .net web api is deployed to railway.app and the wasm app is deployed to github pages. They are working find until the authentication/authorization pages come in. I am using cookie auth and the web api cannot pass a cookie to the wasm app because they have different urls and i am guessing this is to avoid any CSRF attacks. Even if the web api serves the wasm app, i still cannot picture how this can all be deployed to railway.app since the web api .csproj file has to be at the base for this to work (link to this video

u/Righteous_Warriorin r/dotnet • Mentions

How do I publish a hosted blazor wasm app to railway.app There's a tutorial ([video on how to do it for .net web API and this also works for MVC apps as well. But I'm not sure how this would work if the web API serves a blazor wasm app since according to the video, everything needs to be in one project and the hosted wasm app structure is divided into three different folders.