Moving My Django Website Hosting From Heroku To Railway

Ойын-сауық

Moving my personal site away from Heroku to Railway.

Пікірлер: 95

  • @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.

  • @dota2-plays-shorts

    @dota2-plays-shorts

    Жыл бұрын

    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!

  • @unuefeejovwoke6609
    @unuefeejovwoke660920 күн бұрын

    Looking for a tutorial using railway and then I remembered you made one. Thanks Dennis

  • @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. )

  • @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!

  • @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!

  • @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

  • @lancemarchetti8673
    @lancemarchetti8673 Жыл бұрын

    Also great support for Dot Net 7 and Blazor ! ..so all good.

  • @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?

  • @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.

  • @shaysframe1472
    @shaysframe1472 Жыл бұрын

    Can you please make a video on how to host them in real world production environments? Maybe on alibaba ecs or something?

  • @darkksouul
    @darkksouul Жыл бұрын

    Why are the changes we need to make in our project before deploying it on the railway?

  • @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.

  • @leobcheche
    @leobcheche Жыл бұрын

    Are you going to update ecommerce course with this extra information? Thanks for all!

  • @brancode404
    @brancode404 Жыл бұрын

    Hey Dennis, Can you update the deployment section in your course to Railway ?

  • @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.

  • @Muescha
    @Muescha Жыл бұрын

    how can i suspense or stop a project/service to save execution hours (like on heroku)?

  • @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

  • @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 KZread 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.

  • @lucasobwaku9080
    @lucasobwaku9080 Жыл бұрын

    How do I add my admin superuser to a django app on railway?

  • @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

  • @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

  • @vitalii_myt
    @vitalii_myt Жыл бұрын

    How to run django commands via CLI?

  • @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

    @ifeanyiemmanuelanagaepenet4506

    Жыл бұрын

    @@engrenzoyoung9964 how? Could you explain more?

  • @eyalgoren
    @eyalgoren Жыл бұрын

    Can you explain why not use GCP/AWS?

  • @muktadirulislammahi6542
    @muktadirulislammahi6542 Жыл бұрын

    Can you please make a video on how to deploy django on a vps?

  • @RameshKumar-rt8xb
    @RameshKumar-rt8xb Жыл бұрын

    Why do we use services like this if we can host in our own vps?

  • @user-lf1ox9kb2n
    @user-lf1ox9kb2n Жыл бұрын

    Hey Dennis, do you know whether Railway supports MySQL 8?

  • @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.

  • @dimensionalilusions4520
    @dimensionalilusions4520 Жыл бұрын

    I am unable to login after deploying my one of projects in railway platform. Its says CSRF verification failed.

  • @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?

  • @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.

  • @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?

  • @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

  • @hpoormahdi
    @hpoormahdi11 ай бұрын

    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

  • @cheerfulpencils3203
    @cheerfulpencils3203 Жыл бұрын

    Hello! I am having error with my font awesome icons not showing up from S3 buckets, does anyone have problem like this?

  • @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.

  • @cellodabest
    @cellodabest Жыл бұрын

    I get a 404 page not found error when I click the url from Railway

  • @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')"

  • @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

  • @viveksp6711
    @viveksp6711 Жыл бұрын

    its not allowing me.. says my github is new.. So I am not able to verify using github

  • @edivaldoluisbonfim3194
    @edivaldoluisbonfim3194 Жыл бұрын

    did anyone succeed connecting django to railway database ?

  • @tejasnirmal1945
    @tejasnirmal19456 ай бұрын

    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 ?

  • @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

  • @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

  • @mohammadfoisal4873
    @mohammadfoisal4873 Жыл бұрын

    csrf token is not working😪😪😪

  • @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

  • @sanskarshrivastava5193
    @sanskarshrivastava5193 Жыл бұрын

    I am also moving on to railway... ye sab mujhse ni hoga 🥲🥲😭😭

  • @javanprycejavan
    @javanprycejavan Жыл бұрын

    Have you ever thought about rebuilding your website in Next JS and deploying on Vercel

  • @DennisIvy

    @DennisIvy

    Жыл бұрын

    Yep ;)

  • @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

  • @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.

  • @lakpatamang1012
    @lakpatamang1012 Жыл бұрын

    Please, you old pitcher .meme is ,Rocko's Rubens.

  • @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.

Келесі