LoginSignup
1
1

More than 5 years have passed since last update.

heroku deploy準備

Posted at

以下、stack(OS, Libraryのセット)をCedar()にした場合。
Celadon Cedar Stack

Gemfile
group :production do
  gem 'pg'
  gem 'thin'
end

でgem追加。

Procfile
web: bundle exec thin start -p $PORT

をアプリのrootフォルダに追加。

config/environments/production.rb
config.assets.compile = false

config/environments/production.rb
config.assets.compile = true

に変更。
これでpushしたらアプリ公開完了。
なぜかこの設定をしてからheroku createしたら、push後にherokuの方でうまく表示されなかった。

1
1
0

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
1
1