Тёмный

Moving My Django Website Hosting From Heroku To Railway 

Dennis Ivy
Подписаться 211 тыс.
Просмотров 44 тыс.
50% 1

Moving my personal site away from Heroku to Railway.

Развлечения

Опубликовано:

 

28 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 94   
@DennisIvy
@DennisIvy Год назад
A few corrections: 1 - You don't need a credit card on file for the developer plan. You can deposit credits from a prepaid card. 2 - For importing Heroku variables railway now has a CMD + K item for this
@Muescha
@Muescha Год назад
but still a creditcard is needed - they would add paypal for deposit?
@Jonas-sg1eo
@Jonas-sg1eo Год назад
I have like 5 apps on heroku related to the same project ( front end back end , admin panel front and back end ect. ) so each of them would cost me 7$ per month . do you know any alternatives that would allow me to host them all on one plan or host for decent price ?
@MavenSharp
@MavenSharp Год назад
@@Jonas-sg1eo try out render. it's been some weeks, let me know if you found some good alternative.
@eslamsami4986
@eslamsami4986 Год назад
i have a godaddy domain and i cant config dns to make it point to railway subdomain , can u show how to add a record ?
@rehmatqadeer7472
@rehmatqadeer7472 Год назад
Dear Sir without your guidance and wisdom I would not be where I am now. Thank you and happy teacher's day!
@pourygg7091
@pourygg7091 Год назад
Thank you so much for all of your tutorials, so helpful! For the database/staticfiles part, do you recommend to put it all on Railway, or deploying only the code on Railway and the DB/staticfiles on AWS/Azure etc... ? Maybe at a certain project size Railway is not sufficient ? Because if there's no differencies, seems like Railway is a magic solution!
@Muescha
@Muescha Год назад
there is an import from Heroku available ( Within your service’s variables pane, Command + K and type Import Variables From Heroku. After you complete the prompt, you can run the import on any and all services that need variables from your old project. )
@NinjaGuyDan_
@NinjaGuyDan_ Год назад
This vid came at a perfect time lol literally just read the email from Heroku about downgrading the free tier
@alexanderfox429
@alexanderfox429 Год назад
And this my friend is why you deserve the sub 👍👍👍
@wanyoikedanny472
@wanyoikedanny472 Год назад
this sounds as a cool plan for the next step!
@lancemarchetti8673
@lancemarchetti8673 Год назад
Also great support for Dot Net 7 and Blazor ! ..so all good.
@marcdanon1419
@marcdanon1419 Год назад
Thanks for all your amazing tutorials Dennis, small disclaimer, Railway does not have servers outside the US for now. I tried to migrate an AWS Elastic Beanstalk env from Europe to Railway, worked pretty well (for those doing this migration, add gunicorn in your requirements, EBS does not need it but Railways does) but the speed is quite bad and probably some data privacy topics to check if doing the move. Many thanks again for all your work
@vivekkoul4428
@vivekkoul4428 Год назад
so you mean railways is not good for people outside US?
@marcdanon1419
@marcdanon1419 Год назад
@@vivekkoul4428 the free version that I used when I posted this comment was very slow indeed.
@vivekkoul4428
@vivekkoul4428 Год назад
@@marcdanon1419 so it's the issue of the free version. Will a person outside US will face any issue just on account of being outside US?
@marcdanon1419
@marcdanon1419 Год назад
@@vivekkoul4428 there will be more latency in any case if they only have servers in the US, which was the case when I tried it. When it comes to the power of the free server itself, it was quite low and not suitable for a working app using DRF
@repotranstech9614
@repotranstech9614 Год назад
Pythonanywhere is a good option.Considering they have a free tier and we're acquired by anaconda.
@md.musfiqurrahaman8612
@md.musfiqurrahaman8612 Год назад
It only supports only one project. We have many projects.
@syuo5051
@syuo5051 Год назад
@@md.musfiqurrahaman8612, yes
@repotranstech9614
@repotranstech9614 Год назад
@@md.musfiqurrahaman8612 nope it's relatively cheap with it's web app features.
@kemosabe5120
@kemosabe5120 Год назад
They're the best. The free tier's fine for students and you can run a full blown site in production with 100k hits a day of traffic for $5 a month. Plus you can manage the hosting environment, filesystem and app source code basically like a local which is insane. Plus serve media files off your local storage and not have to bother with AWS, unlike Heroku.
@kemosabe5120
@kemosabe5120 Год назад
​@@LP-ln9zlFree SQLite database yes. The file system isn't ephemeral like Heroku so nothing gets "reset." For Postgres it's $12 a month.
@neil_from_future
@neil_from_future Год назад
I choose panetscale because it supports my region. And the free tier plan of Railway annoying me about the hour base not data limit like plantscale.
@katumbavictor3513
@katumbavictor3513 Год назад
Hello Dennis thanks for this video, but I am using django channels and it seems railway allows one start command to start the server unlike the heroku procfile that allows multiple start commands I request that you throw more light on that please. Thank you
@crashingspoon
@crashingspoon Год назад
Does railway have something similar to Heroku scheduler to schedule background tasks?
@shaysframe1472
@shaysframe1472 Год назад
Can you please make a video on how to host them in real world production environments? Maybe on alibaba ecs or something?
@TheCAG1976
@TheCAG1976 Год назад
Dennis. I've used your videos for some time. I have learned Django through one of your videos on Udemy as well as another one I am in the middle of watching where you are building with React JS and then Django! I'm hoping to get some kind of help with an issue I'm having with Heroku. As I happen to have it paused at 2:55 how you are using Heroku-18 Stack. I have upgraded my friend's webpage that I build for her to Stack Heroku-22, but then it will not allow me to push because I'm using an older version of Python. Now I'm stumped because I don't know how to upgrade my older Python app to a newer version. I have the newest Python now downloaded which is something like 3.10.8, but my virtual environment an all is still like 3.9.6 which Heroku is no longer pushing through.
@mattyb955
@mattyb955 Год назад
I have a question, loosely related to hosting (perhaps) -- I'd really like to learn how to use Django to allow a user to download a file that was just created. Specific example to better explain: I made a simple Django-based page with a RU-vid downloader script. When I run that locally on my machine, the script just downloads the video to my computer. However, when it's hosted on (in my case) pythonanywhere... what additional steps would I take to either prompt the user to save that file somewhere on their machine, or automatically initiate that process? I'd be interested in seeing a short-form video on that, if you don't already have one that you could point me to.
@leobcheche
@leobcheche Год назад
Are you going to update ecommerce course with this extra information? Thanks for all!
@darkksouul
@darkksouul Год назад
Why are the changes we need to make in our project before deploying it on the railway?
@brancode404
@brancode404 Год назад
Hey Dennis, Can you update the deployment section in your course to Railway ?
@Muescha
@Muescha Год назад
how can i suspense or stop a project/service to save execution hours (like on heroku)?
@fidelischukwunyere3142
@fidelischukwunyere3142 Год назад
This is just on time. Thanks Dennis. Is there anyway to extract the Heroku free-tire database and copy same to Railway?
@DennisIvy
@DennisIvy Год назад
Hmm haven't done that yet
@engrenzoyoung9964
@engrenzoyoung9964 Год назад
Just dump database to json and then setup new database in any other platform. Create database and dump data there
@fidelischukwunyere3142
@fidelischukwunyere3142 Год назад
Thanks
@ifeanyiemmanuelanagaepenet4506
@@engrenzoyoung9964 how? Could you explain more?
@n.k8664
@n.k8664 Год назад
hi guys, I try to upload project to railway directly and just use sqlite, where do i find or create the variables of that it? I get $PORT error. Thanks
@fidelischukwunyere3142
@fidelischukwunyere3142 Год назад
I don't understand how my app throws multiple incoherent errors while trying the deploy to Railway. Although it works well on Heroku. So frustrating.
@emmakolade
@emmakolade Год назад
Hi Dennis, I successfully deployed my portfolio website with railway app. however while trying to deploy another project, I keep getting Module not found error. then I discovered that the two projects are sharing the same start command. please what is your recommendation on how to fix this please
@lucasobwaku9080
@lucasobwaku9080 Год назад
How do I add my admin superuser to a django app on railway?
@saumojitbhattacharjee7292
@saumojitbhattacharjee7292 Год назад
Can You Please Make A Video on Django-React Integration With Nginx ?
@HariKrishnan-on1yf
@HariKrishnan-on1yf Год назад
Can you please dockerize any django application? Many people uses nginx server to serve static files with reverse proxy. But whitenoise did that? Lots of confusion
@batoolbtoush3274
@batoolbtoush3274 Год назад
what if my project doesn't have any env variables? would it still affect the deployment? I'm using PostgreSQL
@muktadirulislammahi6542
@muktadirulislammahi6542 Год назад
Can you please make a video on how to deploy django on a vps?
@darkksouul
@darkksouul Год назад
Hey! Can you please share some alternatives to Heroku on which we can quickly deploy our website like it was on Heroku?
@yegorzakharov8514
@yegorzakharov8514 Год назад
Maybe check out northflank. It's a good middle ground between heroku and pure aws
@eyalgoren
@eyalgoren Год назад
Can you explain why not use GCP/AWS?
@RameshKumar-rt8xb
@RameshKumar-rt8xb Год назад
Why do we use services like this if we can host in our own vps?
@vitalii_myt
@vitalii_myt Год назад
How to run django commands via CLI?
@byiringirooscar321
@byiringirooscar321 Год назад
hello denis I tried to use all step you have used but I have an issues on form they are telling me CSRF verification failed. Request aborted. and I even used {% csrf_token %} in my template I don't know the reason of this error through the heroku it is working fine but raiway ask me CSRF verification failed. Request aborted.
@user-lf1ox9kb2n
@user-lf1ox9kb2n Год назад
Hey Dennis, do you know whether Railway supports MySQL 8?
@codetechpro
@codetechpro Год назад
HI Dennis, I have uploaded an app to railway but my CSS file isn't loading when DEBUG=False or True...can you give me a solution?
@huzaifafaheem6382
@huzaifafaheem6382 Год назад
Could someone help me clarify a question? I've successfully deployed my Django App on Railway using SQLite. Now, let's say a user makes a post request that updates the database. Will these changes be reflected in my GitHub repository? In other words, if I make a new push to my GitHub repo and Railway re-deploys, will it recognize that the existing database file is already up to date and avoid replacing it with the outdated one from GitHub?
@harunayakubu3702
@harunayakubu3702 Год назад
Hello Sir, I have have successfully deployed my site without environment variables on Railway. However, with environment variables, I'm have issues especially with the discrepancies in the Posgres variables. While normal Postgres variables are: DB_NAME= DB_USER= DB_PASSWORD= DB_HOST= DB_PORT= Railway Postgres variables are: DATABASE_URL= PGDATABASE= PGHOST= PGPASSWORD= PGPORT= PGUSER= Kindly assist me to configure these correctly. Thank you.
@patrykbrzozowski2700
@patrykbrzozowski2700 Год назад
Hi, I've got error when my app was building on railway. Nixpacks build failed Error: stream did not contain valid UTF-8. I don't have any idea how to solve it.
@dimensionalilusions4520
@dimensionalilusions4520 Год назад
I am unable to login after deploying my one of projects in railway platform. Its says CSRF verification failed.
@herambmishra2777
@herambmishra2777 Год назад
Hi Dennis Sir Can you make video on How to Deploy Django + Celery Website in EC2 machine???? Please
@yegorzakharov8514
@yegorzakharov8514 Год назад
Use the aws elastic bean stalk, it connects and manages ec2 instances and DBs
@cheerfulpencils3203
@cheerfulpencils3203 Год назад
Hello! I am having error with my font awesome icons not showing up from S3 buckets, does anyone have problem like this?
@zenbran
@zenbran Год назад
i keep getting this error when trying to deploy my github respiratory do you know a solution to it? "Cannot read properties of undefined (reading 'id')"
@hpoormahdi
@hpoormahdi 11 месяцев назад
hello, i deploy django+postgres+redis successfully and i serve static files by whitenoise but the media files wont upload and wont serve any suggestions
@cellodabest
@cellodabest Год назад
I get a 404 page not found error when I click the url from Railway
@viveksp6711
@viveksp6711 Год назад
its not allowing me.. says my github is new.. So I am not able to verify using github
@masteriq9787
@masteriq9787 Год назад
What about if I use some Buildpacks on Heroku? How does it work then?
@DennisIvy
@DennisIvy Год назад
Railway uses something called "Nixpacks" which acts in a very similar fashion.
@daclarooftw
@daclarooftw Год назад
@@DennisIvy can you show us how to use tesseract on railway
@edivaldoluisbonfim3194
@edivaldoluisbonfim3194 Год назад
did anyone succeed connecting django to railway database ?
@Ben-oniDankyi
@Ben-oniDankyi Год назад
I have a django app that accept user login after deploying with railway its giving me a 403 Forbidden issue
@DennisIvy
@DennisIvy Год назад
Sounds like you are missing some environment variables or didn't update `ALLOWED_HOSTS`.
@khalidelgazzar
@khalidelgazzar Год назад
A lot of people will move from herouku to railways
@javanprycejavan
@javanprycejavan Год назад
Have you ever thought about rebuilding your website in Next JS and deploying on Vercel
@DennisIvy
@DennisIvy Год назад
Yep ;)
@tejasnirmal1945
@tejasnirmal1945 5 месяцев назад
I'm getting error of forbidden request. 403 of csrf, I added csrf token but still it gives error while deploying on railway, please anyone can give me solution to this ?
@daclarooftw
@daclarooftw Год назад
how to access railways shell ? like heroku i wanna see my app files etc
@sasharomaniuk6683
@sasharomaniuk6683 Год назад
It's impossible for now ((
@daclarooftw
@daclarooftw Год назад
@@sasharomaniuk6683 well that's a deal breaker for me
@lakpatamang1012
@lakpatamang1012 Год назад
Please, you old pitcher .meme is ,Rocko's Rubens.
@mohammadfoisal4873
@mohammadfoisal4873 Год назад
csrf token is not working😪😪😪
@isaijeanmary957
@isaijeanmary957 Год назад
i tried and it give me this error Error: stream did not contain valid UTF-8
@DennisIvy
@DennisIvy Год назад
Read my comment on this stack overflow issue and let me know if that helps. Pretty sure you just have to update the requirements.txt file so the encoding is UTF-8
@DennisIvy
@DennisIvy Год назад
If you can share the repo with me, I want to test something out. You can email me at dennisivy11@gmail.com and say "Railway Issue" in the subject line.
@fazliddinfayziyev5347
@fazliddinfayziyev5347 Год назад
@@DennisIvy Hello Mr. I am web developer and I am working on Django project now. I saw that You are django developer. So, I need help now. We faced errors. If you could help us to solve this problem. We are ready to pay 5$ per hour. I know that it is neglectable amount. But we are students and new upcoming developers. 🙂 It is so important for us. Please.
@leftysomething
@leftysomething Год назад
Ohhh I get this error Docker build failed
@mighty-mamad9475
@mighty-mamad9475 Год назад
I have same problem , did u fix that ? Please help me if u can
@sanskarshrivastava5193
@sanskarshrivastava5193 Год назад
I am also moving on to railway... ye sab mujhse ni hoga 🥲🥲😭😭
@isaijeanmary957
@isaijeanmary957 Год назад
please helpme
@0xDEXTER
@0xDEXTER Год назад
you must be sponserd by railway because its such an unreliable service
@Tallshadow7
@Tallshadow7 Год назад
Hi, it works but when I use debug=False or i did " if os.getcwd() == '/app': DEBUG = False " ===> it showed this error static/css/2.028289e9.chunk.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Далее
Heroku Is Dead, Here's What I Recommend
11:59
Просмотров 249 тыс.
Кто понял тот понял
00:24
Просмотров 249 тыс.
Django 5.1 will be more secure by default
6:53
Просмотров 5 тыс.
How To Deploy A Django Project To Heroku
14:02
Просмотров 46 тыс.
Programming Is NOT Enough | Add these 7 skills…
13:19
Free Web Hosting Provider That ACTUALLY Works! (2024)
11:01
Django Skills Roadmap To Getting A Job
17:31
Просмотров 65 тыс.
Django Real Time Chat With Agora SDK
2:38:42
Просмотров 11 тыс.
Deploy Django App to Railway in 5 Minutes
14:00
Просмотров 31 тыс.
Телега - hahalivars
0:55
Просмотров 2,2 млн