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.
Give it any name. Must be a name that isn't used throughout Heroku.
Click the DropBox icon when the app is created.
Now just throw it in the Dropbox / app / Heroku / app name folder.
When doing it with Python, the way to put files seems to be a little addictive.
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