herokuロゴ画像はHerokuより。
Getting Started with Rails 5.x on Herokuを参考に進めていきます。
準備
herokuは PostgreSQL を推奨しているので、それに合わせる。
group :production do gem 'pg' end
heroku toolbeltをインストール。
$ wget -O- https://toolbelt.heroku.com/install.sh | sh $ echo 'PATH="/usr/local/heroku/bin:$PATH"' >> ~/.bash_profile $ source ~/.bash_profile
ログインします。予めアカウントはWebから作っておく。
$ heroku login heroku-cli: Installing CLI... 21.83MB/21.83MB Enter your Heroku credentials. Email: email@example.com Password (typing will be hidden): Logged in as email@example.com続きを読む