简体   繁体   中英

Gem install ruby

I'm new to sass/compass, and I'd like to know how is the first statement (below) different from the second one.

  1. compass install compass;
  2. gem install compass

I also need to know whether I should use the second statement every time I create a new project?

I don't know the difference between the 2(heck i didn't even know the first one was an option). But my advice would be to add gems in the gemfile and run bundle install.

2 reasons:

1: Options: when you do gem install compass it installs the gem automatically for your whole environment. And in your gemfile you can seperate it over different groups.

2: Readability : If you use gem install compass the gem will not be visible in your gemfile, so when other people try to work on your project they can't see all the gems used in the application through the gemfile (annoying).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM