Deploy to Heroku right away without knowing git.

When I made a web application, I deployed it. That's a high threshold for beginners. I use git to type commands, but for some reason, it's a waste of time to google what I don't understand.

To keep the motivation to keep writing the pounding program After all, it is decided that it is better to be able to do it easily at first.

So how to deploy an app that doesn't use git. This time it is when Python is used.

As a normal deployment method using git,

$ heroku login
$cd app project file/
$ git init
$ heroku git:remote -a app name
$ git add .
$ git commit -am "make it better"
$ git push heroku master

Feeling like that. However, if an error is thrown, it is a waste of time to google the cause.

Heroku can now be deployed from Dropbox.

Create a new app with the + button on the top right of the Heroku dashboard. alt

Give it any name. Must be a name that isn't used throughout Heroku. alt

Click the DropBox icon when the app is created. alt

Now just throw it in the Dropbox / app / Heroku / app name folder. alt

When doing it with Python, the way to put files seems to be a little addictive. alt

Place it as above. This should be perfect. Dependent modules are written to requirements.txt with pip freeze. The contents of runtime.txt specify the Python version. If the content of Procfile is bottle, specify the main py file.

web: python index.py

It looks like.

When you're ready, just press the deploy button on Heroku. Easy!

Recommended Posts

Deploy to Heroku right away without knowing git.
Deploy django project to heroku
How to upload with Heroku, Flask, Python, Git (4)
[Easy detonation velocity 2nd] Deploy Streamlit to heroku
Django Heroku Deploy 1
Django Heroku Deploy 2
How to upload with Heroku, Flask, Python, Git (Part 3)
How to upload with Heroku, Flask, Python, Git (Part 1)
How to upload with Heroku, Flask, Python, Git (Part 2)
Deploy a web app created with Streamlit to Heroku