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.

Windows上のVagrantでRails環境構築する際の共有フォルダの注意点【メモ】

Last updated at Posted at 2019-07-10

gemを共有フォルダ以下にインストールするとエラーになる

解決策:gemを共有フォルダ以外にインストールする。

> bundle install --path 共有フォルダ以外へのpath

sqlite3のデータベースファイルを共有フォルダ以下に置くとエラーになる

解決策1:マイグレーションについては以下のように対処できる。

config/database.yml
...

test:
  <<: *default
  database: db/test.sqlite3 # ←pathを共有フォルダ以外に変更

production:
  <<: *default
  database: db/production.sqlite3 # ←pathを共有フォルダ以外に変更

解決策2:PostgreSQL, MySQLなどの他のDBを使う。

筆者の環境

Host OS: Windows 10 Home (バージョン 1809(OSビルド 17763.557))
Vagrant 2.2.4
Virtual Box 6.0.8
Vagrant Box(Guest OS): CentOS/7

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?