LoginSignup
1
0

More than 5 years have passed since last update.

rails new したらやることリスト。Heroku, Bootstrap 4, gitignore

Last updated at Posted at 2019-03-25

Gemfile

上の方の sqlite3 削除

# gem 'sqlite3'

ローカルのみの開発の場合は削除せずに、gem 'sqlite3', '~> 1.3.6' に書き換えるだけでいい。

development 環境に sqilte3 追加。バージョン指定忘れずに!!!

heroku 対策
heroku は sqlite3 使えないので。

group :development, :test do
  ...
  gem 'sqlite3', '~> 1.3.6'
end

production 環境に pg 追加

heroku 対策

group :production do
  ...
  gem 'pg'
end

development 環境に rb-readline 追加

Library not loaded 対策

group :development do
  ...
  gem 'rb-readline'
end
参考記事

rails c 時の Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib (LoadError) 解決方法

Bootstrap 4

公式ページ見るのが確実 && 早い

Bootstrap 公式
Bootstrap gem 公式
sprockets-rails 公式

.gitignore 編集

gitignore.ioが便利

.gitignore が表示されてない場合はターミナルから ls -a して .gitignore を押下して編集。

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