Deploy on Heroku using Django as a framework.
python-3.7.3 django 2.2
Homebrew, pyenv, Pipenv, Python, Django installed
A platform service that allows you to easily upload and publish web applications. Since it can be used in a state where the environment has already been built, you can easily publish the created application on the web just by uploading it on Heroku.
https://signup.heroku.com/jp Register as a Heroku user from the URL above. (free)
By installing Heroku Toolbelt, you can use commands dedicated to Heroku. Enter the following command in the terminal. (For mac)
$ brew tap heroku/brew && brew install heroku
Now that you have the Heroku Toolbelt installed, you can use Heroku commands on your terminal. Now, log in to Heroku from your terminal.
$ heroku login
heroku: Press any key to open up the browser to login or q to exit: #Press Enter etc.
Opening browser to https://cli-auth.heroku.com/auth/browser/xxxxxxxxxxxxxxxxxxxxxxxx
Logging in... done
Logged in as [email protected] #Your email address will be displayed
You can create an application on Heroku with the following command.
$heroku create app name
【Caution! ] If the app name isn't unique across Heroku, it'll bounce back like this! ↓ ↓ Example
$ heroku create banban
Creating ⬢ banban... !
▸ Name banban is already taken
banban-2020 </ code>!
If it works, it will be as follows.
$ heroku create banban-2020
Creating ⬢ banban-2020... done
https://banban-2020.herokuapp.com/ | https://git.heroku.com/banban-2020.git
・ Deploy Up to this point, you have secured the area to deploy the app.
Deployment to Heroku is described below. "Django Heroku Deploy 2" https://qiita.com/yusuke_mrmt/items/a540ba5b04a1fd6dbdb7
Recommended Posts