Heroku初探

https://devcenter.heroku.com/articles/getting-started-with-python
```bash
sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install heroku

heroku login
mkdir heroku
cd heroku/
git clone https://github.com/heroku/python-getting-started.git
cd python-getting-started/

heroku create
git push heroku master
heroku ps:scale web=1
heroku open
heroku logs --tail

less Procfile
heroku ps

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py collectstatic
heroku local web
pip install -r requirements.txt
heroku local
git add .
git status
git commit -m "Demo"
git push heroku master

heroku addons:create papertrail
heroku addons

heroku run python manage.py shell
heroku run bash
heroku config:set TIMES=2
heroku local
heroku config

heroku run python manage.py migrate
heroku pg
heroku pg:psql

heroku maintenance:on
```

评论

此博客中的热门博文

Windows下ShadowSocks客户端安装和配置 顺带KCP

How to Install KeePass on M1 Mac

How User Friendly is a MacOS