1 Credit card registered heroku account 2 Rails application created in docker environment (Add RUN apt-get install -y vim to Dockerfile when editing credentials: edit) * Refer to this article https://qiita.com/croquette0212/items/44378e01de18f62d01df 3 heroku cli installed
Rails.application.confiture do
(Abbreviation)
config.hosts.clear
(Abbreviation)
end
$ docker-compose stop
$ rm -f tmp/pids/server.pid
$cd directory name
$ heroku login --interactive
$ heroku container:login
$heroku create app name
$ heroku addons:add cleardb
$ heroku config:set DATABASE_URL=`heroku config:get CLEARDB_DATABASE_URL | sed -- s/mysql/mysql2/`
$ heroku container:push web
$ heroku container:release web
$ heroku run rails db:migrate
$ heroku open
Recommended Posts