herokuとは
www.sejuku.net
herokuに登録する
signup.heroku.com
heroku toolbeltインストール
brew install heroku-toolbelt
アカウント認証
$ heroku login
Enter your Heroku credentials.
Email: adam@example.com
Password (typing will be hidden):
Authentication successful.
サンプルファイルを作成する
mkdir ~/heroku
- vim index.php(indexが名前についてないと怒られた)
<?php
echo 'Hello World';
touch composer.json
herokuにアプリを登録する
git init
git add .
git commit -m "my first commit"
heroku create
- 結果(名前を指定しないとアプリ名はランダムで決まる)
Creating app... done, ⬢ safe-garden-40056
https://safe-garden-40056.herokuapp.com/ | https://git.heroku.com/safe-garden-40056.git
herokuに登録したアプリをデプロイする
git push heroku master
ブラウザで確認
heroku open
感想
- 小さなものならさくっとherokuでいいんじゃないかな感
- 色々細かいこと気になるけどまたそのうち機会があれば触ってみる