Gemfile location

56 views
Skip to first unread message

Maxim Baluev

unread,
Feb 16, 2012, 11:40:16 PM2/16/12
to rubyonra...@googlegroups.com
When i am create new project "rails new newProject", ruby create rails
files and next automaticly launch bundle install and setup standart
gems:


C:\Sites>rails new demo
create README.rdoc
.
.
.
create vendor/plugins/.git
run bundle install
.
.
.

Where is standart gemfile location? Or how change standart set of gems?

--
Posted via http://www.ruby-forum.com/.

soldier.coder

unread,
Feb 17, 2012, 12:48:50 AM2/17/12
to Ruby on Rails: Talk
If you want to find where a particular gem is:

Given: heroku gem is installed
When: you want to see where it is
Then:

$ gem which heroku
/home/soldiercoder/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.20.0/lib/
heroku.rb

Cheers,

SC

Boško Ivanišević

unread,
Feb 17, 2012, 2:27:53 AM2/17/12
to rubyonra...@googlegroups.com
According to your command prompt you are using Windows where standard file location is:

<path_to_your_ruby_installation_folder>\lib\ruby\gems\1.9.1\gems

for Ruby 1.9, and for ruby 1.8

<path_to_your_ruby_installation_folder>\lib\ruby\gems\1.8\gems


Cheers,
Boško Ivanišević

Colin Law

unread,
Feb 17, 2012, 4:40:01 AM2/17/12
to rubyonra...@googlegroups.com
On 17 February 2012 04:40, Maxim Baluev <li...@ruby-forum.com> wrote:
> When i am create new project "rails new newProject", ruby create rails
> files and next automaticly launch bundle install and setup standart
> gems:
>
>
> C:\Sites>rails new demo
>      create  README.rdoc
>      .
>      .
>      .
>      create  vendor/plugins/.git
>         run  bundle install
>      .
>      .
>      .
>
>
>
> Where is standart gemfile location? Or how change standart set of gems?

Your question may be ambiguous. If you are looking for the file
Gemfile where you specify which gems you want then it is in the top
level folder of the new rails project, so C:\Sites\demo\Gemfile in the
case above.

Colin

Anna Vester

unread,
Feb 17, 2012, 1:08:38 AM2/17/12
to rubyonra...@googlegroups.com
On Thu, Feb 16, 2012 at 10:40 PM, Maxim Baluev <li...@ruby-forum.com> wrote:
When i am create new project "rails new newProject", ruby create rails
files and next automaticly launch bundle install and setup standart
gems:


C:\Sites>rails new demo
     create  README.rdoc
     .
     .
     .
     create  vendor/plugins/.git
        run  bundle install
     .
     .

The Gemfile is typically located at the root of your app, in your case it will be in demo

So, you could 

C:\Sites>cd demo
C:\Sites>type Gemfile

you can modify that file and then re-run it with a command "bundle" or "bundle install"

Hope this helps,

Anna 
Reply all
Reply to author
Forward
0 new messages