LoginSignup
1
0

More than 5 years have passed since last update.

【Rails】アプリケーション作成

Last updated at Posted at 2017-08-08

アプリケーションの作成をするには以下のコマンドを入力
rails new 作成したいアプリケーション名

今回Errno:でgem install bindex -v '0.5.0'と表示されたので

gem install bindex -v '0.5.0'
を実行


cd 作成したアプリケーション名
でディレクトリの中に入る

ちなみにもしGemfileを書き換えた際は一番初めだけは以下のコマンドを実行
bundle install --path vendor/bundle

**Gemfileはbundler用の設定ファイル
アプリケーションを実行するrubyやsqlite3などのバージョンを指定することができる



2回目以降にGemfileを書き換えたら必ず以下のコマンドを実行する
bundle install

そうしないと
rails s
でサーバー起動してもサーバーが更新されず書き換えたものが更新されない


サーバー起動したら
localhost:3000/
をURLタブに入力すれば作成したアプリケーションのwebサイトが開ける

うまく行かない場合
bundle install --path vendor/bundleの後に
bundle update
を実行し、再度rails s で起動してみるといいかもしれない

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