문제

i generate my app with rails new app and then i go to the home directory of my app like this : cd app, and i create a .rvmrc file to specify the gemset to use with this project and there will go all my gems instead of default gemset created by rvm.

but the first time when i create my app, and before creating my gemset (with .rvmrc file ) for this project, rails run automatically bundle install wich means that all gems installed by rails command are in default gemset !!!

i find this confusing , can someone explain that to me please

도움이 되었습니까?

해결책

You could create the gemset before you create the rails app if you want:

rvm gemset create new_gemset_name

Then BEFORE you create the app w/ rails, run:

rvm use @new_gemset_name

That way when you run "rails create" the gems will be installed in the new gemset you just created. Afterward you can create a .rvmrc file

다른 팁

I would recommend putting:

--skip-bundle

to your ~/.railsrc file, you will edit Gemfile and run bundle install manually anyway.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top