LoginSignup
0
1

More than 3 years have passed since last update.

rails 環境構築

Posted at

ruby install

  1. 公式サイトから 「=> Ruby+Devkit 2.6.5-1 (x64)」をダウンロード
  2. exe を実行してそのまま進める。cmd が開かれて実行画面が出て無事消えたら ok
  3. cmd でruby -vを実行して version が返却されたら install 完了

SQLite3 install

  1. 公式サイトのダウンロード画面から 「Precompiled Binaries for Windows」の部分で bit 数に合わせたものを取得
  2. 1 と同じ URL より「sqlite-tools-win32-x86-3310100.zip」も取得する
  3. ダウンロードしたフォルダにある「sqlite3.exe」と「sqlite3.dll」を -rubyinstallpath-/binの中にコピーして配置する

Rails install

  1. gem install rails -v 6.0.2.2
  2. rails -vで帰ってきたら ok

localhost起動

  1. Rails new project -G で環境を作成
  2. Rails sで環境localhost:3000繋がる

困ったとき

yarnがない

公式からyarnのinstallをする

webpackerが無くて落ちる

Webpacker configuration file not found

とあれば、ないのでrails webpacker:installを使ってinstallする
(この時yarnが必要)

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