Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Issue with Git

Git

  • Please log in to reply
6 replies to this topic

#1 RickCoder1987

RickCoder1987

    Passenger

  • Members
  • 4 posts

Posted 14 January 2014 - 04:57 AM

Right after doing a bundle install, and typing the command, rails server, I typed the command, mate .gitignore and my Macbook(running on OSX 10.6.8 with Rails 4.0.2 application) IS NOT pulling up the file in TextMate Editor as intended by the command.. 
I used railsinstaller for download ruby on rails and I think Git is in that package so why imy terminal not reacting??  
 
Here's what i typed in my Terminal below:
 
Last login: Mon Jan 13 23:29:41 on ttys000
Matthew-Riccardis-MacBook-Pro:~ bname$ mkdir Matt_new
Matthew-Riccardis-MacBook-Pro:~ mriccardi69$ cd Matt_new/
Matthew-Riccardis-MacBook-Pro:Matt_new mriccardi69$ rails new Matt_new
      create  
      create  README.rdoc
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      create  app/assets/javascripts/application.js
      create  app/assets/stylesheets/application.css
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/views/layouts/application.html.erb
      create  app/assets/images/.keep
      create  app/mailers/.keep
      create  app/models/.keep
      create  app/controllers/concerns/.keep
      create  app/models/concerns/.keep
      create  bin
      create  bin/bundle
      create  bin/rails
      create  bin/rake
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/filter_parameter_logging.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/secret_token.rb
      create  config/initializers/session_store.rb
      create  config/initializers/wrap_parameters.rb
      create  config/locales
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/database.yml
      create  db
      create  db/seeds.rb
      create  lib
      create  lib/tasks
      create  lib/tasks/.keep
      create  lib/assets
      create  lib/assets/.keep
      create  log
      create  log/.keep
      create  public
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/favicon.ico
      create  public/robots.txt
      create  test/fixtures
      create  test/fixtures/.keep
      create  test/controllers
      create  test/controllers/.keep
      create  test/mailers
      create  test/mailers/.keep
      create  test/models
      create  test/models/.keep
      create  test/helpers
      create  test/helpers/.keep
      create  test/integration
      create  test/integration/.keep
      create  test/test_helper.rb
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor/assets/javascripts
      create  vendor/assets/javascripts/.keep
      create  vendor/assets/stylesheets
      create  vendor/assets/stylesheets/.keep
         run  bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.1)
Using i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.4)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.2)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.2)
Using mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.2)
Using activemodel (4.0.2)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.2)
Using bundler (1.5.2)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.2)
Using coffee-rails (4.0.1)
Using hike (1.2.3)
Using jbuilder (1.5.3)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using tilt (1.4.1)
Using sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.2)
Using rdoc (4.1.1)
Using sass (3.2.13)
Using sass-rails (4.0.1)
Using sdoc (0.4.0)
Using sqlite3 (1.3.8)
Using turbolinks (2.2.0)
Using uglifier (2.4.0)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Matthew-Riccardis-MacBook-Pro:Matt_new mriccardi69$ open .
Matthew-Riccardis-MacBook-Pro:Matt_new mriccardi69$ cd Matt_new/
Matthew-Riccardis-MacBook-Pro:Matt_new mriccardi69$ ls
Gemfile Rakefile config lib test
Gemfile.lock app config.ru log tmp
README.rdoc bin db public vendor
Matthew-Riccardis-MacBook-Pro:Matt_new mriccardi69$ mate Gemfile
Matthew-Riccardis-MacBook-Pro:Matt_new mriccardi69$ bundle install
Using rake (10.1.1)
Using i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.4)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.2)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.2)
Using mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.2)
Using activemodel (4.0.2)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.2)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.2)
Using coffee-rails (4.0.1)
Using hike (1.2.3)
Using jbuilder (1.5.3)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using bundler (1.5.2)
Using tilt (1.4.1)
Using sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.2)
Using rdoc (4.1.1)
Using sass (3.2.13)
Using sass-rails (4.0.1)
Using sdoc (0.4.0)
Using sqlite3 (1.3.8)
Using turbolinks (2.2.0)
Using uglifier (2.4.0)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Matthew-Riccardis-MacBook-Pro:Matt_new mriccardi69$ rails server
=> Booting WEBrick
=> Rails 4.0.2 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2014-01-13 23:36:54] INFO  WEBrick 1.3.1
[2014-01-13 23:36:54] INFO  ruby 1.9.3 (2013-02-22) [x86_64-darwin10.8.0]
[2014-01-13 23:36:54] INFO  WEBrick::HTTPServer#start: pid=1150 port=3000
$ mate .gitignore
 
 
 


#2 katafrakt

katafrakt

    Signalman

  • Members
  • 16 posts
  • LocationKrak√≥w, PL

Posted 14 January 2014 - 09:24 AM

You're trying to open a regular file in your texteditor. If it fails, it is an editor or system problem. Either way it has nothing to do with git.



#3 RickCoder1987

RickCoder1987

    Passenger

  • Members
  • 4 posts

Posted 14 January 2014 - 05:44 PM

When I typed the command text Gemfile it pulled up that file in TextMate though.  What type of system problem could it be?!!



#4 RickCoder1987

RickCoder1987

    Passenger

  • Members
  • 4 posts

Posted 14 January 2014 - 05:58 PM

Actually I may have found the issue: on railsinstaller.org it has this message at the bottom of the page, Please NOTE: OSX 10.6 installer is for 64-bit only. This will likely break on 32-bit computers. I am running a 10.6.8 snow leopard...is this 32 bit or 64 bit?  



#5 stevieing

stevieing

    Dispatcher

  • Members
  • 40 posts

Posted 15 January 2014 - 10:10 AM

If it was broken there is a likelihood that you would received error messages. Rails new has worked which would indicate that the Rails installer has worked.

 

You probably need to do some investigation.

 

when you type in 'which git' on the command line what do you get?

 

When you type in mate .gitignore on the command line what do you mean by not reacting? Even if the file does not exist it should create it.

 

Is the file there when you open the finder window? You will need to display hidden files/folders.



#6 RickCoder1987

RickCoder1987

    Passenger

  • Members
  • 4 posts

Posted 19 January 2014 - 12:04 AM

I attempted to start the process from scratch so I uninstalled the railsinstaller package and tried following Michael Hartl's beginner installation tutorial.  I went through the entire guide to install and now I have this issue when I open the terminal:

 

Last login: Sat Jan 18 18:36:17 on ttys000

-bash: /etc/profile.d/sm.sh: No such file or directory

-bash: /etc/profile.d/rvm.sh: No such file or directory

Matthew-Riccardis-MacBook-Pro:~ mriccardi69$ 

 

Did I not correctly source RVM?



#7 keaglin

keaglin

    Passenger

  • Members
  • 4 posts

Posted 25 January 2014 - 10:50 AM

What are you trying to do? Did you check Finder for the files? Fairly new myself, but maybe I can help.





Also tagged with one or more of these keywords: Git

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users