heroku 的用法

heroku

安装cli

npm install -g heroku
ubuntu 下 sudo snap install --classic heroku 安装

npm init -y

heroku addons 查看附件组件服务
heroku config 查看配置
heroku local web

部署一个java 应用
git clone https://github.com/heroku/java-getting-started
heroku create
git push heroku master
heroku ps:scale web=1
heroku logs --tail
heroku open

本地
heroku local web

提交
git add .
git commit -m "Demo"
git push heroku master

posted @ 2019-12-02 11:27  jojoworld  阅读(218)  评论(0编辑  收藏  举报