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
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 ?
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!
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. )
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 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
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.
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
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.
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.
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
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
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
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.
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?
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.
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.
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')"
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
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 ?
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
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.
@@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.
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.