Push Flask Apps To Heroku For Webhosting - Python and Flask #11

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 291

  • @Codemycom
    @Codemycom  4 роки тому +5

    ▶️ Watch Entire Flask Playlist ✅ Subscribe To My UA-cam Channel:
    bit.ly/2TU96lm bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN

  • @EUU100
    @EUU100 3 роки тому +4

    Thank you!
    Btw for anyone who this might help, you can also pretty much do all of this manually on github, creating the requirments and procfile. to get the libraries for your requirements file just use 'pip list' copy and paste the files and make sure in between the name and version have ==, like this package==1.0.1 for example. but i did use gitbash to push the actual project to my github
    Thanks again!

  • @YazhShah
    @YazhShah 3 роки тому +11

    High quality content in 10min

  • @harshitsomani1717
    @harshitsomani1717 3 роки тому +1

    AT 6:03 when you added period you got many statements that showed it was successfull,but when I do the same I am not getting anything,no error or no statements,I am using vscode in macos ,what can I do?

  • @TECNOMUNDOCHANNEL
    @TECNOMUNDOCHANNEL 4 роки тому +6

    How do I upload my local database to heroku?

  • @yihongkembabazi
    @yihongkembabazi 3 роки тому +1

    Thank you for the detailed explanation!!! I'd been trying to deploy my app but didn't really understand about Procfile (just did through this video) 😂😂 can't believe how easy it was.

  • @darkchoclate
    @darkchoclate 2 роки тому

    Great tutorial... Thank you... But one thing that i faced that is not mentioned here, that you sometimes manually need to enable gunicorn in recourses section of heroku dashboard, or webprocess wont run...

    • @Codemycom
      @Codemycom  2 роки тому

      I've never had to do that

    • @darkchoclate
      @darkchoclate 2 роки тому

      @@Codemycom following the tutorial, I faced it, so i thought it may help others... I previously worked ith heroku making some bot, i didn't not face before but this time...

  • @JuankaGC
    @JuankaGC 3 роки тому +3

    Thanks for the tutorial! :)
    I'm using a conda environment and the requirements file listed too many packages causing several errors during the package collection afterwards. In case it can be useful for somebody, this is what I did:
    Create the requirements file without containing packages that are dependencies of others (so that it lists less packages) and in the correct format:
    $ pip list --not-required --format=freeze > requirements.txt
    I hope it can be helpful.
    App running properly! :)

  • @schawanji
    @schawanji 3 роки тому

    🤗 I have finished the whole Into to Web Dev with flask
    playlist

  • @TechWithSabri
    @TechWithSabri 4 роки тому +3

    Great tutorial! because of you sir i finished this tutorial maybe in 3 hours after 2 months of your Django tutorial i loved it thank you again so much

  • @macklemo5968
    @macklemo5968 3 роки тому +2

    this was so satisfying to deploy my first own project online! Thank you so much for this decent tutorial

  • @nayantarakotoky8160
    @nayantarakotoky8160 2 роки тому

    How to download or collect the form data into, say, a txt file? The database is running properly so the names are getting added and not deleted after the app is restarted. But how to download/collect that data for offline processing? Please help!

  • @qrdr
    @qrdr 3 роки тому

    I have tool required secrets.. then add it to requirements.txt but when install it say no module openSSL then add pyOpenSSL to requirements.txt I installed it normally but it still no module openSSL Please do you have any solution?

  • @YazhShah
    @YazhShah 3 роки тому +1

    I have one question I have successfully deployed my flask app but if I make a change to one of the files locally then push it to the repository. How can I update that change onto Heroku ? or would I just do git push heroku master after making the change.

    • @Codemycom
      @Codemycom  3 роки тому +1

      push it into heroku again in the same way

  • @lifeislarge
    @lifeislarge 4 роки тому +2

    My flask app runs perfectly on local machine but "application error" is displayed after deployment to heroku i have procfile and requirements intact but all this happening.

    • @Codemycom
      @Codemycom  4 роки тому

      What exact error are you getting?

    • @skrim6952
      @skrim6952 4 роки тому

      Just try to find error in log

  • @widmarraulquispeleon1583
    @widmarraulquispeleon1583 4 роки тому +11

    there is always a good bald in everything ... congratulations ...!! xD the best video ...!

  • @zixuanjia9637
    @zixuanjia9637 4 роки тому +1

    Do you know why I am getting this message?
    ERROR: Could not find a version that satisfies the requirement anaconda-client==1.7.2 (from -r /tmp/build_126e3b30/requirements.txt (line 3)) (from versions: 1.1.1, 1.2.2)
    remote: ERROR: No matching distribution found for anaconda-client==1.7.2 (from -r /tmp/build_126e3b30/requirements.txt (line 3))

    • @Codemycom
      @Codemycom  4 роки тому

      No clue, I don't use anaconda

  • @Magniton1
    @Magniton1 3 роки тому +2

    Just an fyi, if you need to update the version of your Heroku app for a new version of Python, you will need to make a runtime.txt file to tell Heroku to not run the Python 3.6.6 version.

  • @felipemorelli4059
    @felipemorelli4059 2 роки тому

    Valeu!

  • @FilthySnob
    @FilthySnob 4 роки тому

    how come you had the dB ready on the heroku server out of the bat? I didn't even have posters add on installed ?!

  • @WhatsAnIdea
    @WhatsAnIdea 2 роки тому

    not able to configure flask code on heroku, can u help?

  • @k0kuyo133
    @k0kuyo133 3 роки тому +1

    Hello, I tried to deploy my Flask app with the filename __init__.py and in Procfile i put:
    web: gunicorn app:__init__
    but when I push it to Heroku, it said no module named flask. Can someone help?

    • @2udu-hacks141
      @2udu-hacks141 3 роки тому

      the tree should be like this :
      project folder /{directory name} / __init__.py
      project folder / run.py
      project folder / Procfile
      inside the Procfile ---- add this lines {web: gunicorn run:app}
      ##
      add this line in run.py
      from {name of the directory where you __init__.py file belongs} import app
      if __name__ == "__main__":
      app.run()
      ##
      now push this to your heroku host.
      hope this will work for you . :)

    • @k0kuyo133
      @k0kuyo133 3 роки тому +1

      @@2udu-hacks141 hey thanks for ur reply. I managed to fix it. Turned out the heroku install via pipfile.lock so the requirements.txt was not used. I created the filelock with pipenv freeze.

  • @osiris5449
    @osiris5449 2 роки тому

    in perfect order too brother, you got one from node to python to php to git to heroku?! that's what i was working in but a virus ruined my computer!!! :(

  • @jwrestler7
    @jwrestler7 2 роки тому

    Thanks for the great vids! This has helped tremendously. The only problem I seem to have is with the very end. When I do the heroku login and press the key, nothing happens. I tried doing the heroku login -i but I enter my email address and again, nothing happens. Have you encountered this problem before? I verified that Heroku was added to PATH and I also added system32 to PATH

    • @Codemycom
      @Codemycom  2 роки тому

      You need a web browser open when you hit enter.

  • @Ovicron
    @Ovicron 4 роки тому

    Web hosting feels so complicated, this tutorial makes it seem easy. Liked and subbed.

    • @Codemycom
      @Codemycom  4 роки тому +1

      That's why I like Heroku ;-)

  • @chiedozieehirim5659
    @chiedozieehirim5659 2 роки тому

    Thanks a lot.
    I followed all the steps but I keep getting this Application Error whenever I open my page.
    Please what are the causes and solutions?

  • @stevenfernz96
    @stevenfernz96 3 роки тому

    Hi. Im using application factory of flask app tried to upload it on heroku but failed. can yuh tell me what procfile should look like.
    Flask File structure:
    app -
    static -
    template -
    __init__.py
    env -
    ProcFile
    req...txt

    • @Codemycom
      @Codemycom  3 роки тому

      I show you everything you need in this video

  • @bellcanada719
    @bellcanada719 2 роки тому

    no module named app
    but i have a search.py and i named the app:search in procfile is it to be search:search?

    • @Codemycom
      @Codemycom  2 роки тому

      You could have tried it and seen faster than asking :-p

    • @pjmclenon
      @pjmclenon 2 роки тому

      hello i left this project cuz it wasnt working so going on memory it dodnt work when i left it; sowe name it what exactly? sorry but asking is how i learn as well as trying ok thxz Lisa

  • @lameckotieno5837
    @lameckotieno5837 3 роки тому

    Honestly, this is the best flask tutorial...been wasting time on other videos kindly make a video on sessions and any other basic stuff in flask otherwise thanks a lot

    • @Codemycom
      @Codemycom  3 роки тому +1

      I just started a new Flask Fridays playlist...we'll get into it there.

    • @lameckotieno5837
      @lameckotieno5837 3 роки тому

      @@Codemycom Thanks

  • @mahadevan6618
    @mahadevan6618 2 роки тому

    Has anyone seen the error
    Paths 'commit' ...' with -a does not make sense
    When running git commit -am 'initial commit'

  • @mstech2984
    @mstech2984 2 роки тому

    when i do heroku login and enter any key nothing happens , the browser doesn't open, what should i do

    • @Codemycom
      @Codemycom  2 роки тому

      Close all your browsers that may be open, then open a new browser yourself. Just one, no other tabs. Then do the commands again.

  • @kevinalexanderrodriguezria6555
    @kevinalexanderrodriguezria6555 3 роки тому

    gunicorn only works on unix based systems?

    • @Codemycom
      @Codemycom  3 роки тому

      Of course not, I'm on Windows

  • @Faisal-jo5vk
    @Faisal-jo5vk 2 роки тому

    im using cs50 ide and it shows me this error message when i do git push heroku master :-
    ERROR: Could not find a version that satisfies the requirement ikp3db==1.4.5 (from versions: 1.0, 1.1, 1.1.2, 1.1.3, 1.1.4, 1.4.1
    i tried changing ikp3db to 1.4.1 but it didnt work😕

    • @Codemycom
      @Codemycom  2 роки тому

      You have to use the tools that I use in the video if you want the result that I get.

  • @nathulkumar3368
    @nathulkumar3368 4 роки тому

    Could not find a version that satifies the url in requirements. Plz help!!

  • @junjielim6734
    @junjielim6734 3 роки тому

    Hi, there is an error that occurs after executing the command "git commit -am 'initial commit'"
    fatal: paths 'commit' ...' with -a does not make sense
    May I know how to solve this?

    • @Codemycom
      @Codemycom  3 роки тому +1

      you're using the wrong terminal

    • @junjielim6734
      @junjielim6734 3 роки тому

      @@Codemycom yup, I solved it already. And also thanks for your tutorial , it helped me a lot 😎

  • @carlosduque5174
    @carlosduque5174 2 роки тому

    This was easier than I expected, thank you so much!!!

  • @donzaalastudio6980
    @donzaalastudio6980 4 роки тому

    Awesome :) I knew nothing about heroku but you made it so simple and easy to understand. Thanks man

  • @myportfolioresume1938
    @myportfolioresume1938 3 роки тому

    On buttonclick the url is redirecting to localhost/home

    • @Codemycom
      @Codemycom  3 роки тому

      Why did you code it to do that?

  • @WaldoTheWombat
    @WaldoTheWombat 3 роки тому

    what about environment variables?

  • @mohammadsoroushzadeh5684
    @mohammadsoroushzadeh5684 4 роки тому +1

    Why didn't you use gitignore file?!!

  • @anuragshrivastava7855
    @anuragshrivastava7855 3 роки тому

    i have seen so many videos but this the best

  • @erdoganyildiz617
    @erdoganyildiz617 3 роки тому

    Hey, thanks for the video! I am wondering why did we create a virtual environment on our local machine? We didn't install any packages in the virtual environment. What exactly is it used for? Thanks :)

    • @Codemycom
      @Codemycom  3 роки тому

      We installed flask in there...it's standard practice always with anything python to create a virtual environment for your project.

  • @zedrobot5864
    @zedrobot5864 4 роки тому +1

    it keep giving me response 404 ?????

  • @andreriveravega
    @andreriveravega 3 роки тому

    Thank you very much, I have not found an explanation in Spanish, I do not speak English but I understood you perfectly.

  • @alishahrose2076
    @alishahrose2076 3 роки тому

    How should I do this for Gevent pywsgi

    • @Codemycom
      @Codemycom  3 роки тому

      Sorry, I don't know that...check it's docs

  • @sripriya649
    @sripriya649 3 роки тому

    How to deploy an app with oracle db connection using instant client to heroku?

  • @ranjanpal7217
    @ranjanpal7217 3 роки тому

    Amazing...Also plz make a video on how to push csv/jpg files to Heroku cloud using python

  • @pradeepchandrasekaran272
    @pradeepchandrasekaran272 3 роки тому

    I was able to host the app to Heroku. I also uploaded apple-app-association file inside the well-known folder, but when I try to access it through URL, it returns 404 error "Not Found
    The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."

    • @Codemycom
      @Codemycom  3 роки тому

      check your heroku logs for the error.

  • @mlailpkcmlailpkc6312
    @mlailpkcmlailpkc6312 3 роки тому

    I love your tutorial. but please how do i serve staticfiles with whitenoise on heruko

  • @KonstantinPrydnikov1
    @KonstantinPrydnikov1 4 роки тому

    Thanks man, it's first time in my live all had done without any trouble, exactly as you show.

  • @Aymeric486
    @Aymeric486 3 роки тому

    hello, nice video :) i have a question: right now my flask allow me to read/ write on a file with (open in python). If i push flask to heroku, do you think i will still be able read and write my files ? or will there be security issues? Sorry for my english :)

    • @Codemycom
      @Codemycom  3 роки тому +1

      It should be ok, as long as those files are also pushed to heroku

  • @misterbristles
    @misterbristles 3 роки тому

    Very kewl Flask tutorial set John, it helped a lot. I do have a problem when uploading to heroku. Deploy was successful, however got an application error with a codeH=14 which indicates no dyno was running. So, I hopped back and used heroku ps:scale worker-1 --app myappname and got ! Couldn't find that process type (worker). So I seem to be a little stuck. Advice?

    • @Codemycom
      @Codemycom  3 роки тому

      No clue...try walking through the steps again, you may have just missed something

    • @akashuday7107
      @akashuday7107 2 роки тому

      did you get the solution?

  • @aryanpanwar6399
    @aryanpanwar6399 3 роки тому

    How do I make it so that it is visible on google search aswell??

    • @Codemycom
      @Codemycom  3 роки тому

      Google will find it sooner or later.

  • @abdelkassem451
    @abdelkassem451 4 роки тому

    Hello, how can you upgrade python 3.6 to 3.8 in that case? I have some library issues because of that.

    • @Codemycom
      @Codemycom  4 роки тому

      In what case? Just download and install 3.8 if you want.

  • @8koi245
    @8koi245 2 роки тому

    omg tysm!! I was finally able to use heroku!!

  • @soupnoodles
    @soupnoodles 2 роки тому

    Informative video. Thank you.

  • @plusk343
    @plusk343 4 роки тому +6

    The best thing about you is the positivity that you radiate!!!

    • @Codemycom
      @Codemycom  4 роки тому +1

      Thanks!

    • @plusk343
      @plusk343 4 роки тому +1

      @@Codemycom MOST WELCOME JOHN! This video has just 1 dislike!!! That a greater success than having a million subs!!!!

    • @Codemycom
      @Codemycom  4 роки тому +1

      @@plusk343 Ha, I'm not sure about that!

    • @plusk343
      @plusk343 4 роки тому +1

      ​@@Codemycom Anyways, people like you, Corey Schafer, Tech With Tim, and sentdex are the legends that help a high schooler like me to learn Python just the way I want to. At my school, even my computer teacher doesn't know Python as much as I know and all that is just because of you all. How on Earth can I thank you all!!!

    • @Codemycom
      @Codemycom  4 роки тому +1

      @@plusk343 You just did ;-) glad I could be helpful! And btw, I knew more than my high school computer teacher too when I was that age ;-)

  • @wealthcrowns4485
    @wealthcrowns4485 2 роки тому

    Great video. Could you create another video with postgres db and deploy to heroku

  • @aakarshkumar6935
    @aakarshkumar6935 4 роки тому

    What to do:
    ERROR: mysqlclient-1.4.6-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
    remote: ! Push rejected, failed to compile Python app.

    • @Codemycom
      @Codemycom  4 роки тому

      We use sqlite in this video, not mysql. You need to find instructions on how to use mysql with flask and heroku

  • @jlesseyp
    @jlesseyp 4 роки тому +4

    Great tutorial! Just what I needed. Simple and effective info.

    • @Codemycom
      @Codemycom  4 роки тому +2

      Glad it was helpful!

  • @deadphim
    @deadphim 2 роки тому

    Oh my god thank you I've been trying for hours to get this done

  • @zehe6871
    @zehe6871 3 роки тому +1

    Thank you so much for creating this series. I really learnt a lot and now it's a good start for me to create my own website.

  • @HeroSphereTCG
    @HeroSphereTCG 3 роки тому

    Can you embed a herokuapp on your own website? I created a game in python and want to host it on my own website.

  • @gisandweb5394
    @gisandweb5394 4 роки тому

    git push heroku master
    Push rejected to geedatavisualization.
    error occur can you can explain me why this was happen

    • @Codemycom
      @Codemycom  4 роки тому

      What's the entire error message?

    • @zixuanjia9637
      @zixuanjia9637 4 роки тому

      @@Codemycom Got the same error: remote: ! If you are developing on a branch and deploying via git you must run
      remote: !
      remote: ! git push heroku :main
      remote: !

  • @gioviiaco
    @gioviiaco 2 роки тому

    Thanks for the tutorial but be careful for the xss attack cause the web app is still online

  • @destinyjames6117
    @destinyjames6117 4 роки тому +1

    Note: Add a runtime.txt in the same folder as the requirements.txt, you can specify the python version you wish the server to have there
    Example: python-3.6.9

  • @_SarveshJoshi
    @_SarveshJoshi 4 роки тому

    The terminal freezed after "Total 2153 (delta 311), reused 0 (delta 0), pack-reused 0" nothing happening :(

    • @Codemycom
      @Codemycom  4 роки тому

      restart it and try again

  • @anmolsingh4969
    @anmolsingh4969 4 роки тому

    How to push apache mysql data base

  • @gaurishagrawal9404
    @gaurishagrawal9404 3 роки тому

    My app deployed but I am getting a error on url page:
    Application error
    If you are application owner check out the logs...

    • @Codemycom
      @Codemycom  3 роки тому

      Did you check the logs?

    • @gaurishagrawal9404
      @gaurishagrawal9404 3 роки тому

      @@Codemycom Yes its giving me soe h14 error. I looked it up, but cant figure out whats wrong.

  • @haze13_
    @haze13_ 2 роки тому

    ur actually a legend for this

  • @whitehat-it-4096
    @whitehat-it-4096 3 роки тому

    Все что я пробовал - давали ошибку Application error, этот метод дал такаю же ошибку

  • @TheTimaninja
    @TheTimaninja 4 роки тому

    when will be episode #12 ? :(

  • @ndanjikalokoni4575
    @ndanjikalokoni4575 4 роки тому

    how do i deploy a flask opencv apllication

    • @Codemycom
      @Codemycom  4 роки тому

      I don't know what a flask opencv app is...

  • @last1b4free
    @last1b4free 4 роки тому

    git add . does not push my code.... nothing happen

    • @Codemycom
      @Codemycom  4 роки тому +1

      Then you didn't initialize git or add a github.com repository

    • @last1b4free
      @last1b4free 4 роки тому

      @@Codemycom Yea. thanks. I added a new repository then connect from Heroku Dashboard and deploy it from there.

  • @BrooklynDesigne
    @BrooklynDesigne 4 роки тому

    Help me please! I have a mistake : Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/conda/feedstock_root/build_artifacts/babel_1605182336601/work'
    after "git push heroku master". (((

    • @Codemycom
      @Codemycom  4 роки тому

      You're using anaconda..it's different than regular python

    • @BrooklynDesigne
      @BrooklynDesigne 4 роки тому

      @@Codemycom I’m crying..thank you so much!

    • @Codemycom
      @Codemycom  4 роки тому

      @@BrooklynDesigne sure thing

  • @mariamkhanam4037
    @mariamkhanam4037 2 роки тому

    Brooo.... Heroku is no longer free From November 28th, 2022... Can you make a video on alternative to host flask

  • @confymarlow
    @confymarlow 4 роки тому

    Herokou is 24/7 without my computer?

  • @peppydude9656
    @peppydude9656 4 роки тому

    i am getting error while trying to push origin heroku... stackoverflow.com/questions/63289806/git-push-heroku-pip-version-not-matching

    • @Codemycom
      @Codemycom  4 роки тому

      what error?

    • @peppydude9656
      @peppydude9656 4 роки тому

      @@Codemycom its fine now, i updated the npm and lock package. thank you

  • @uisaerospace6677
    @uisaerospace6677 2 роки тому

    Thank you very much, this was very useful! Liked and subbed

  • @SuperBoy-ph4ip
    @SuperBoy-ph4ip 4 роки тому

    it says application error when i try to run the site

    • @Codemycom
      @Codemycom  4 роки тому

      What's the entire error? Try from the terminal: heroku logs

    • @SuperBoy-ph4ip
      @SuperBoy-ph4ip 4 роки тому

      @@Codemycom i tried . it says error in one css file and error in "/". I checked everything was right

  • @hoanglamsub2417
    @hoanglamsub2417 3 роки тому

    at=error code=H14 desc="No web processes running" method=GET path="/"
    help me please

  • @himanshukarki
    @himanshukarki 2 роки тому

    thanks man.... Its exactly what i was looking for. Great help

  • @mahiraasadzade8293
    @mahiraasadzade8293 2 роки тому

    Hi, thank you for great tutorial! I have such an error: "ERROR: Invalid requirement: 'git initFlask==2.1.2' (from line 1 of /tmp/build_d13d7f43/requirements.txt)" How can I solve it?(((

    • @Codemycom
      @Codemycom  2 роки тому

      your requirements.txt file is wrong.

  • @Lily-ed2sc
    @Lily-ed2sc 3 роки тому

    this was straightforward however my requirements.txt file was having issues

    • @Codemycom
      @Codemycom  3 роки тому

      no, it's not a thing that can really have issues...

  • @mezianibelkacem650
    @mezianibelkacem650 4 роки тому

    it s perfect but in the end i get application error when i reload my page after push ! why ?

    • @Codemycom
      @Codemycom  4 роки тому

      what's the exact error?

    • @mezianibelkacem650
      @mezianibelkacem650 4 роки тому

      @@Codemycom when i run my application with pipenv it works and if i run my application with bash i get error in the code.

    • @Codemycom
      @Codemycom  4 роки тому

      @@mezianibelkacem650 well yeah, you have different setups you can expect different results

  • @tanaysukhdeve6284
    @tanaysukhdeve6284 4 роки тому

    [Solved]After git push heroku master...runs successfully but the url returns application error...plz help....
    ps:i dont have a virtual env ,i have done it globally in MyApp.

    • @Codemycom
      @Codemycom  4 роки тому

      What's the exact error?

    • @tanaysukhdeve6284
      @tanaysukhdeve6284 4 роки тому

      @@Codemycom An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
      heroku logs --tail
      LAST LINE OF LAST CMD RUN : remote: Verifying deploy... done.
      To git.heroku.com/tanaysblog.git
      * [new branch] master -> master
      LOG details :
      $ heroku logs --tail
      2020-10-03T14:56:03.862112+00:00 app[api]: Release v1 created by user hawasskpujari@gmail.com
      2020-10-03T14:56:03.862112+00:00 app[api]: Initial release by user hawasskpujari@gmail.com
      2020-10-03T14:56:04.018223+00:00 app[api]: Release v2 created by user hawasskpujari@gmail.com
      2020-10-03T14:56:04.018223+00:00 app[api]: Enable Logplex by user hawasskpujari@gmail.com
      2020-10-03T14:56:55.000000+00:00 app[api]: Build started by user hawasskpujari@gmail.com
      2020-10-03T14:57:29.103797+00:00 app[api]: Release v3 created by user hawasskpujari@gmail.com
      2020-10-03T14:57:29.103797+00:00 app[api]: Deploy a58d7b10 by user hawasskpujari@gmail.com
      2020-10-03T14:57:29.116297+00:00 app[api]: Scaled to web@1:Free by user hawasskpujari@gmail.com
      2020-10-03T14:57:33.422840+00:00 heroku[web.1]: Starting process with command `: gunicorn application:app`
      2020-10-03T14:57:35.864962+00:00 heroku[web.1]: Process exited with status 0
      2020-10-03T14:57:35.896065+00:00 heroku[web.1]: State changed from starting to crashed
      2020-10-03T14:57:35.898838+00:00 heroku[web.1]: State changed from crashed to starting
      2020-10-03T14:57:38.000000+00:00 app[api]: Build succeeded
      2020-10-03T14:57:40.099704+00:00 heroku[web.1]: Starting process with command `: gunicorn application:app`
      2020-10-03T14:57:43.681155+00:00 heroku[web.1]: Process exited with status 0
      2020-10-03T14:57:43.715340+00:00 heroku[web.1]: State changed from starting to crashed
      2020-10-03T14:58:05.147620+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tanaysblog.herokuapp.com request_id=ea23a7bf-8365-4b28-8d14-575d89ebd78e fwd="103.252.171.139" dyno= connect= service= status=503 bytes= protocol=https
      2020-10-03T14:58:06.170795+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=tanaysblog.herokuapp.com request_id=5ab17e4b-2a62-4fd9-9801-53bd2531f7f7 fwd="103.252.171.139" dyno= connect= service= status=503 bytes= protocol=https
      PS:Thanks for quick reply

    • @tanaysukhdeve6284
      @tanaysukhdeve6284 4 роки тому

      After searching for days....Finally ,got the solution.This was due to the improper spacing in Procfile. My site is live now.Thanks @codemy.com

    • @Codemycom
      @Codemycom  4 роки тому

      @@tanaysukhdeve6284 Awesome! Glad you got it sorted out!

  • @ReemTelbani
    @ReemTelbani 3 роки тому

    Thanks for this awesome simple video.
    I followed every single step as you did exactly, but when it comes to "git push heroku master
    " part , it gave me an error. I wrote the error down here , could you help me with that error?
    $ git push heroku master
    Enumerating objects: 12053, done.
    Counting objects: 100% (12053/12053), done.
    Delta compression using up to 4 threads
    Compressing objects: 100% (9815/9815), done.
    Writing objects: 100% (12053/12053), 256.79 MiB | 194.00 KiB/s, done.
    Total 12053 (delta 1803), reused 12053 (delta 1803)
    remote: Compressing source files... done.
    remote: Building source:
    remote:
    remote: -----> Building on the Heroku-20 stack
    remote: -----> Determining which buildpack to use for this app
    remote: ! No default language could be detected for this app.
    remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
    remote: See devcenter.heroku.com/articles/buildpacks
    remote:
    remote: ! Push failed
    remote: Verifying deploy...
    remote:
    remote: ! Push rejected to ecpredictor.
    remote:
    To git.heroku.com/ecpredictor.git
    ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'git.heroku.com/ecpredictor.git'

    • @Codemycom
      @Codemycom  3 роки тому +1

      it can’t tell what sort of app you’re using...which means you skipped a step. rewatch the video and give it another try.

    • @ReemTelbani
      @ReemTelbani 3 роки тому

      ​@@Codemycom I tried again and I got a new error..
      my python version is 3.8.9,
      I built a new virtual environment using this version,
      re-installed the needed libraries in the new environment
      created the requirements.txt and the Procfile
      also added "Python-3.8.9" line
      in available
      $ git push heroku master
      Enumerating objects: 12215, done.
      Counting objects: 100% (12215/12215), done.
      Delta compression using up to 4 threads
      Compressing objects: 100% (9964/9964), done.
      Writing objects: 100% (12215/12215), 173.94 MiB | 329.00 KiB/s, done.
      Total 12215 (delta 1822), reused 12215 (delta 1822)
      remote: Compressing source files... done.
      remote: Building source:
      remote:
      remote: -----> Building on the Heroku-20 stack
      remote: -----> Determining which buildpack to use for this app
      remote: -----> Python app detected
      remote: ! Requested runtime (Python-3.8.9) is not available for this stack (heroku-20).
      remote: ! Aborting. More info: devcenter.heroku.com/articles/python-support
      remote: ! Push rejected, failed to compile Python app.
      remote:
      remote: ! Push failed
      remote: Verifying deploy...
      remote:
      remote: ! Push rejected to ecpredictor.
      remote:
      To git.heroku.com/ecpredictor.git
      ! [remote rejected] master -> master (pre-receive hook declined)
      error: failed to push some refs to 'git.heroku.com/ecpredictor.git'

    • @Codemycom
      @Codemycom  3 роки тому

      @@ReemTelbani Try it again...every time you try it you get a different error...which means you're doing something different than the video each time you try it.

  • @anuragdhyani1712
    @anuragdhyani1712 3 роки тому

    very nice video thanks for the wonderful and easy explanation.

    • @Codemycom
      @Codemycom  3 роки тому

      Glad you enjoyed it! Thanks for watching!

  • @akramelomrani8728
    @akramelomrani8728 4 роки тому

    the git doesnt work help

    • @Codemycom
      @Codemycom  4 роки тому

      You have to be more specific

    • @akramelomrani8728
      @akramelomrani8728 4 роки тому +1

      @@Codemycom Never mind love you man ure so good

  • @akhileshregmi3294
    @akhileshregmi3294 4 роки тому

    git commit -am 'initial commit'
    fatal: paths 'commit' ...' with -a does not make sense
    Help

    • @Codemycom
      @Codemycom  4 роки тому

      huh?

    • @akhileshregmi3294
      @akhileshregmi3294 4 роки тому +1

      @@Codemycom had the same reaction....This is what comes when I do the thing: git commit -am 'initial commit'
      (I have screenie)

  • @devarshigoswami9149
    @devarshigoswami9149 3 роки тому

    in an alternate universe, Walter White taught programming instead of chemistry

  • @gaurishagrawal9404
    @gaurishagrawal9404 3 роки тому

    I am getting error:

  • @mbonuchinedu2420
    @mbonuchinedu2420 4 роки тому

    Please also add gunicorn to the requirement.txt file.

    • @Codemycom
      @Codemycom  4 роки тому

      You can do that if you like

  • @getoverhere4465
    @getoverhere4465 2 роки тому

    Really sad Heroku won’t be free anymore in November

  • @BuildItWithSagar
    @BuildItWithSagar 3 роки тому

    Showing "Touch is not recognised"

    • @Codemycom
      @Codemycom  3 роки тому

      touch should be lowercase

  • @scoutee
    @scoutee 2 роки тому

    you're the best. thank you so much

  • @vagdrak6575
    @vagdrak6575 3 роки тому

    thank you for this amazing tutorial!

    • @Codemycom
      @Codemycom  3 роки тому

      Welcome!

    • @vagdrak6575
      @vagdrak6575 3 роки тому

      @@Codemycom heroku resets the database every few hours.could you please make a video on how to solve that?

    • @Codemycom
      @Codemycom  3 роки тому

      @@vagdrak6575 No, you can't save images on heroku. You have to save them on a CDN.

    • @vagdrak6575
      @vagdrak6575 3 роки тому

      @@Codemycom i mean the friends database

    • @Codemycom
      @Codemycom  3 роки тому

      @@vagdrak6575 Then no, it shouldn't be resetting anything

  • @bryarmustafa2294
    @bryarmustafa2294 4 роки тому +1

    The Younger version of the "Breaking Bad" star.

  • @hnfsrj
    @hnfsrj 4 роки тому +2

    Thank you! Is what i can say!

    • @Codemycom
      @Codemycom  4 роки тому

      You're very welcome!

    • @hnfsrj
      @hnfsrj 4 роки тому

      @@Codemycom Everything went fine and it even said it was successful but when i refreshed the page again at the end, i got a 404 error. It would be great if u make a tutorial on how to fix it.

    • @Codemycom
      @Codemycom  4 роки тому

      @@hnfsrj I mean, you just did something wrong...I couldn’t guess what..

    • @hnfsrj
      @hnfsrj 4 роки тому

      @@Codemycom Yeah i think you're right about that, I will just google it and stuff and hopefully get it right. Thanks again

  • @RougeLino
    @RougeLino 4 роки тому +1

    who else has "the 'touch' is not recgnized" problem ?

    • @bhavikjain1077
      @bhavikjain1077 4 роки тому

      I got the same problem do you find the solution

    • @RougeLino
      @RougeLino 4 роки тому

      @@bhavikjain1077 you can create a procfile manually. It's a normal txt file but with no extension. So the name of the file would be "Procfile" not "Procfile.txt"

    • @bhavikjain1077
      @bhavikjain1077 4 роки тому +1

      Thanks it worked