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!
Perfect timing :) Thank you!
You're welcome
this works like a charm, even for a .net web api. Thank you
Glad to hear that
@@CoderFoundry how would you deploy a blazor wasm app to railway? Can you demo that? I am stuck.
nice explanation! thanks!
18:12 have you already test it for 30/31 days?
HI, greetings from Brazil 🌎
Hello 👋
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.
You can use your own container.
Thanks, do I store variables in launchSettings or do I get them from Railway?
What would you learn between the back end .net,spring boot or node
.net for me.
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?
Im with the same problem, did you manage to solve it?
@@matiaslokman Sadly, was not able to figure it out. Please update the thread if you find a solution
Thanks! 😼
you're welcome.
broo, how did i connect my database with my application? im trying, but nothing happens
did u use proxy?
Seems to be fair. What about digital ocean? They seem to have the 5$ plan too.
We are moving to railway but the first $5.00 is free. After that you pay its a pretty good deal.
Hi, Can I auto escaling too? the sql and the API?
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 🙏
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.
This method works with blazor auto?
You can push any blazor app to railway the render mode does not matter.
I wonder how I can deploy my backend app container image to Railway given my DB is PlanetScale
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
Hi, I use SqlServer in my project, is there a way to create such a sql database?
You would have to use a docker file with sql server in it. But you can do it.
im trying to have my rest api upload but i keep getting a build error
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
We have a free course on Learn.coderfoundry.com
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.
Add the code from this gist to program.cs: gist.github.com/GistCF/4372c8fb77302f6fd996be90fcd025af
How does this work if you have multiple projects in one solution and the main project has dependencies to other projects
I have not tried that setup. I would use a container launch the container from the cli.
Very Good! Thank you!
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.
I will check it and get back to you
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?
You need a way to publish your database to railway.
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?
Yes. But you can do it manually.
My . net dB uses MySQL, do I follow the same rules as PostgreSQL?
I have not tried it but it should be similiar.
Do you have a MySQL database type of deployment?
We use postgres because it is a free option
I also move my stuff to railway, looks like they will be getting a high boost in their customer base
Yeah they have seen a massive growth spike for sure! How are you finding railway so far?
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.
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
@@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?
I am pursuing a career to become a Front end web developer. Do you have a program for that On your website ? Cheers.
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.
@@CoderFoundry Thanks for getting back to me. Awesome, That's fair enough, I will join the self paced online program.cheers.
how would this work with multi-project solutions?
Should work fine.
@@CoderFoundry it did. Thanks
Thanks man this really helps me alot!
Glad it helped!
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.
It's for 12 months after that you pay.
@@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.
Did you delete my question?
Not sure what was your question?
@@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"
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
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