LoginSignup
2

More than 5 years have passed since last update.

Ubuntu 16.04 on Docker で Heroku Toolbelt を試す

Posted at
  • 要 Docker 環境
  • 要 Heroku アカウント

Local

### Ubuntu 16.04 の bash を起動
docker run -it ubuntu:16.04 /bin/bash

Ubuntu on Docker

### Heroku Toolbelt のインストール
apt update
apt install -y wget sudo
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh

### Heroku Toolbelt バージョン確認
heroku --version

### Heroku ログイン
heroku login

### Heroku アプリ作成
mkdir hello-app
git init
heroku create <MY_HEROKU_APP_NAME>
#=> Creating app... done, ⬢ <MY_HEROKU_APP_NAME>
#   https://<MY_HEROKU_APP_NAME>.herokuapp.com/ | https://git.heroku.com/<MY_HEROKU_APP_NAME>.git

git remote -v
#=> heroku  https://git.heroku.com/<MY_HEROKU_APP_NAME>.git (fetch)
#   heroku  https://git.heroku.com/<MY_HEROKU_APP_NAME>.git (push)

### アプリ作成
### (ごにょごにょ)

### Heroku デプロイ
git push heroku master

あとは煮るなり焼くなり:smiley:

Dockerfile 化しておくと良いかもです。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2