0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

アプリケーションの作成方法

Posted at

1.アプリケーションの作成
rails new sample_app(データベース名) -d mysql

2.GemFileを修正
gem 'bootsnap', '1.4.5', require: false

3.Database.ymlファイルにMysqlのパスワード入力

4.Railsアプリケーションに移動
cd sample_app

5.データベース作成
rails db:create

$ rails db:create
rails aborted!
Errno::ENOENT: No such file or directory - bs_fetch:open_current_file:open
bin/rails:4:in `'
(See full trace by running task with --trace)


これが出た場合

1.GemFileに下記の表記を修正
gem 'bootsnap', '1.4.5' , require: false
2.tmp/cache/配下にあるbootsnapと書いてあるファイルを削除
3.bundle install

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?