▶️ 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
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!
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?
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.
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 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...
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! :)
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!
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?
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.
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.
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))
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.
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?
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 . :)
@@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.
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!!! :(
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
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
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
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
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😕
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?
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 :)
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."
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 :)
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 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!!!
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 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: !
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
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". (((
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?(((
[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 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
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 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'
@@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.
@@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.
@@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"
▶️ 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
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!
High quality content in 10min
Thanks!
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?
How do I upload my local database to heroku?
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.
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...
I've never had to do that
@@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...
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! :)
cool
🤗 I have finished the whole Into to Web Dev with flask
playlist
awesome
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
Glad it helped!
this was so satisfying to deploy my first own project online! Thank you so much for this decent tutorial
Very Welcome!
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!
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?
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.
push it into heroku again in the same way
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.
What exact error are you getting?
Just try to find error in log
there is always a good bald in everything ... congratulations ...!! xD the best video ...!
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))
No clue, I don't use anaconda
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.
sure
Valeu!
how come you had the dB ready on the heroku server out of the bat? I didn't even have posters add on installed ?!
not able to configure flask code on heroku, can u help?
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?
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 . :)
@@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.
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!!! :(
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
You need a web browser open when you hit enter.
Web hosting feels so complicated, this tutorial makes it seem easy. Liked and subbed.
That's why I like Heroku ;-)
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?
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
I show you everything you need in this video
no module named app
but i have a search.py and i named the app:search in procfile is it to be search:search?
You could have tried it and seen faster than asking :-p
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
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
I just started a new Flask Fridays playlist...we'll get into it there.
@@Codemycom Thanks
Has anyone seen the error
Paths 'commit' ...' with -a does not make sense
When running git commit -am 'initial commit'
when i do heroku login and enter any key nothing happens , the browser doesn't open, what should i do
Close all your browsers that may be open, then open a new browser yourself. Just one, no other tabs. Then do the commands again.
gunicorn only works on unix based systems?
Of course not, I'm on Windows
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😕
You have to use the tools that I use in the video if you want the result that I get.
Could not find a version that satifies the url in requirements. Plz help!!
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?
you're using the wrong terminal
@@Codemycom yup, I solved it already. And also thanks for your tutorial , it helped me a lot 😎
This was easier than I expected, thank you so much!!!
welcome!
Awesome :) I knew nothing about heroku but you made it so simple and easy to understand. Thanks man
Glad I could help!
On buttonclick the url is redirecting to localhost/home
Why did you code it to do that?
what about environment variables?
sure
Why didn't you use gitignore file?!!
i have seen so many videos but this the best
thanks
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 :)
We installed flask in there...it's standard practice always with anything python to create a virtual environment for your project.
it keep giving me response 404 ?????
in that case your url is not correct
Thank you very much, I have not found an explanation in Spanish, I do not speak English but I understood you perfectly.
Thanks!
How should I do this for Gevent pywsgi
Sorry, I don't know that...check it's docs
How to deploy an app with oracle db connection using instant client to heroku?
Amazing...Also plz make a video on how to push csv/jpg files to Heroku cloud using python
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."
check your heroku logs for the error.
I love your tutorial. but please how do i serve staticfiles with whitenoise on heruko
Thanks man, it's first time in my live all had done without any trouble, exactly as you show.
Glad it was helpful!
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 :)
It should be ok, as long as those files are also pushed to heroku
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?
No clue...try walking through the steps again, you may have just missed something
did you get the solution?
How do I make it so that it is visible on google search aswell??
Google will find it sooner or later.
Hello, how can you upgrade python 3.6 to 3.8 in that case? I have some library issues because of that.
In what case? Just download and install 3.8 if you want.
omg tysm!! I was finally able to use heroku!!
Happy to help!
Informative video. Thank you.
welcome
The best thing about you is the positivity that you radiate!!!
Thanks!
@@Codemycom MOST WELCOME JOHN! This video has just 1 dislike!!! That a greater success than having a million subs!!!!
@@plusk343 Ha, I'm not sure about that!
@@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!!!
@@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 ;-)
Great video. Could you create another video with postgres db and deploy to heroku
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.
We use sqlite in this video, not mysql. You need to find instructions on how to use mysql with flask and heroku
Great tutorial! Just what I needed. Simple and effective info.
Glad it was helpful!
Oh my god thank you I've been trying for hours to get this done
Glad you found it!
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.
Great to hear!
Can you embed a herokuapp on your own website? I created a game in python and want to host it on my own website.
yes i think you can, it will just be in the form of a subdomain.
@@boluro-ajayioluwaseun8813 cool! Thanks!
git push heroku master
Push rejected to geedatavisualization.
error occur can you can explain me why this was happen
What's the entire error message?
@@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: !
Thanks for the tutorial but be careful for the xss attack cause the web app is still online
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
yeah
The terminal freezed after "Total 2153 (delta 311), reused 0 (delta 0), pack-reused 0" nothing happening :(
restart it and try again
How to push apache mysql data base
My app deployed but I am getting a error on url page:
Application error
If you are application owner check out the logs...
Did you check the logs?
@@Codemycom Yes its giving me soe h14 error. I looked it up, but cant figure out whats wrong.
ur actually a legend for this
Thanks!
Все что я пробовал - давали ошибку Application error, этот метод дал такаю же ошибку
when will be episode #12 ? :(
how do i deploy a flask opencv apllication
I don't know what a flask opencv app is...
git add . does not push my code.... nothing happen
Then you didn't initialize git or add a github.com repository
@@Codemycom Yea. thanks. I added a new repository then connect from Heroku Dashboard and deploy it from there.
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". (((
You're using anaconda..it's different than regular python
@@Codemycom I’m crying..thank you so much!
@@BrooklynDesigne sure thing
Brooo.... Heroku is no longer free From November 28th, 2022... Can you make a video on alternative to host flask
yeah, I plan to
Herokou is 24/7 without my computer?
Correct
@@Codemycom 👍
i am getting error while trying to push origin heroku... stackoverflow.com/questions/63289806/git-push-heroku-pip-version-not-matching
what error?
@@Codemycom its fine now, i updated the npm and lock package. thank you
Thank you very much, this was very useful! Liked and subbed
Happy to hear it!
it says application error when i try to run the site
What's the entire error? Try from the terminal: heroku logs
@@Codemycom i tried . it says error in one css file and error in "/". I checked everything was right
at=error code=H14 desc="No web processes running" method=GET path="/"
help me please
Try pasting that error into google
@@Codemycom i have tried and ... :))
@@Codemycom thanks for rep me
thanks man.... Its exactly what i was looking for. Great help
Happy to hear it!
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?(((
your requirements.txt file is wrong.
this was straightforward however my requirements.txt file was having issues
no, it's not a thing that can really have issues...
it s perfect but in the end i get application error when i reload my page after push ! why ?
what's the exact error?
@@Codemycom when i run my application with pipenv it works and if i run my application with bash i get error in the code.
@@mezianibelkacem650 well yeah, you have different setups you can expect different results
[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.
What's the exact error?
@@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
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
@@tanaysukhdeve6284 Awesome! Glad you got it sorted out!
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'
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.
@@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'
@@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.
very nice video thanks for the wonderful and easy explanation.
Glad you enjoyed it! Thanks for watching!
the git doesnt work help
You have to be more specific
@@Codemycom Never mind love you man ure so good
git commit -am 'initial commit'
fatal: paths 'commit' ...' with -a does not make sense
Help
huh?
@@Codemycom had the same reaction....This is what comes when I do the thing: git commit -am 'initial commit'
(I have screenie)
in an alternate universe, Walter White taught programming instead of chemistry
lol
I am getting error:
Please also add gunicorn to the requirement.txt file.
You can do that if you like
Really sad Heroku won’t be free anymore in November
Showing "Touch is not recognised"
touch should be lowercase
you're the best. thank you so much
Very welcome!
thank you for this amazing tutorial!
Welcome!
@@Codemycom heroku resets the database every few hours.could you please make a video on how to solve that?
@@vagdrak6575 No, you can't save images on heroku. You have to save them on a CDN.
@@Codemycom i mean the friends database
@@vagdrak6575 Then no, it shouldn't be resetting anything
The Younger version of the "Breaking Bad" star.
Ha!
Thank you! Is what i can say!
You're very welcome!
@@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.
@@hnfsrj I mean, you just did something wrong...I couldn’t guess what..
@@Codemycom Yeah i think you're right about that, I will just google it and stuff and hopefully get it right. Thanks again
who else has "the 'touch' is not recgnized" problem ?
I got the same problem do you find the solution
@@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"
Thanks it worked