alex brie . net

bloghez din 2003 despre mine, internet, prieteni si altele.
  • Blog
  • About
  • Contact
  • Articole preferate
  • Publicitate
  • Blogs
« Wordpress plugins you MUST have
Tot despre twitter »

Rails on a Mac - 1-2-3 noobie guide

March 27th, 2007 |

Warning! This is not a full-blown tutorial, rather a quick step-by-step intro on what you have to do to run Rails on your Mac, if you are a noobie who just heard of Rails and wants to have it running on his computer ASAP:

  • Step 1 - Get Rails - Rumours say that in the upcoming OS X version – Leopard, Rails will be included by default. If you are on a previous version, though – such as Tiger, then no need to despair – somebody thought about people in a hurry and made out a beautiful app. It’s called Locomotive and includes ruby, rails and many useful gems(tiny ruby libraries with extra functionalities).
  • Step 2 - Get MYSQL for the database backend. If you want to install it as a standalone app, then be my guest. It’s a bit complicated and I’ll be talking about this in a future article. Until then, though, there’s a very nice app out there that has it all: it’s called MAMP (as in Mac, Apache, Mysql, Php) and it’s free. It comes with PhpMyAdmin as well to help manage your databases from the browser.
  • Step 3 - Get Started: You should install and start MAMP, and write down the connection settings it shows (server name, port, socket). Then you go to PhpMyAdmin and create a new database; write down the name, user and password. Start Locomotive and select “Create New…” (Command+N). You select the folder where the app will be created, give a name to the app, OK, and you are set - the system creates the rails application folders where you wanted. All it’s left to do is complete the database config file (RAILS_APPLICATION/config/database.yml) with the connection settings you found out from MAMP - remember to input the server name, database name, user name and the socket value (socket:/path/to/your/mysql.sock) .

development:
adapter: mysql
database: myapp_development
username: root
password: root
socket: /Applications/MAMP/tmp/mysql/mysql.sock
host: localhost

Here you are now! Your Rails application is ready to be developed on your Mac. Go get a good Ruby on Rails tutorial and start rolling!

Daca esti nou pe aici, nu uita sa te abonezi la feedul meu RSS . Iti multumesc pentru vizita!


Postata in Rails, Tutorials | RSS 2.0 feed comentarii | Comenteaza; Trackback.

Leave a Reply

  • Despre Alex Brie

    View Alexandru Brie's profile on LinkedIn

    Bloger pasionat din septembrie 2003.
    Software engineer; master in cercetare algoritmica la Ecole Polytechnique Paris; a lucrat in Paris in software bursier.

    Inapoi in Romania din 2006, programeaza Ruby on Rails pentru un startup american, este consultant independent, blogger si antreprenor cu diverse proiecte online
    [afla mai multe..]

    Aboneaza-te RSS(Romanian)

      
    Acum te poti abona si prin email.

    Subscribe(English)

    Twitter


  • Recomand

    eLiberatica 2008 - The Benefits of Open and Free Technologies Conference cele mai importante bloguri din .ro, pe o singura pagina jurnal de fapte bune
  • Articole recente

    • La Radio.. vreau sa ajung la Radio…
    • Hotii de cuvinte
    • BD cu Emo
    • 4 ponturi despre cum s-ar putea imbunatati Vodafone *222 si nu numai
    • Oscarul zilei la categoria bloguri
    • Publicitati pe bloguri si testari de produse
    • Scurte ale ultimelor zile
    • Videoclipuri facute de fani.. amatori?
    • De ce a devenit stupid sa-i injuri pe bloggeri.
    • Marius Tuca - onanist ca toti onanistii…
    • Vodafone steluta 222 si un glont in cap
    • Matrix pi dulsili grai basarabean
    • Bobby Yahoo
    • Blog Marketing Survey
    • Cauta pe Trilulilu direct din Firefox
  • Comentarii recente

    • A.Faith on La Radio.. vreau sa ajung la Radio…
    • Handy on Functional tests with login in Rails
    • sorecarul on Hotii de cuvinte
    • Janos on BD cu Emo
    • Ahilosu on BD cu Emo
    • Anal Avenger on The most amazing useless talent I ever saw
    • Kappacelu` on Hotii de cuvinte
    • Piku on Banca Transilvania
    • Alina on BD cu Emo
    • A.Faith on Videoclipuri facute de fani.. amatori?
    • A.Faith on Publicitati pe bloguri si testari de produse
    • bubu on BD cu Emo
    • alexandru petria on BD cu Emo
    • 4 ponturi despre cum s-ar putea imbunatati Vodafone *222 si nu numai | alex brie . net on Vodafone steluta 222 si un glont in cap
    • Alex on Continuare la C-net/Ilink - din ce in ce mai varza…
  • Archives

  • Categories

    • Blog (1268)
      • carcoteli (3)
      • English (12)
      • evenimente (3)
      • FILMS (33)
      • French (3)
      • fun (54)
      • intrebari (4)
      • jocuri (3)
      • matematica (1)
      • PHOTO (143)
        • desene (11)
        • flori (2)
        • oua rosii (1)
      • Projects (75)
        • business (29)
        • ROSI (11)
      • Romanian (114)
        • aici (46)
        • repat (33)
      • scurte (7)
      • Software (23)
        • .mac (20)
      • stiati ca (4)
      • Stiri IT Media si Internet (38)
      • Technicalities (65)
      • Web (447)
        • links (147)
        • Memes (54)
        • video (52)
    • dev (19)
      • Open Source (1)
      • Rails (7)
      • Ruby (7)
      • Textpattern (2)
      • Tips and Tricks (8)
      • Tutorials (6)
      • Wordpress (6)
    • Words (127)
      • essays (31)
      • Politice (38)
      • vss[very short stories] (5)
  • Poze recente

    IMG_0342 IMG_0291 IMG_0338 IMG_0282 IMG_0351 IMG_0273 IMG_0287 IMG_0290 IMG_0336 IMG_0276 IMG_0343 IMG_0334 IMG_0275 IMG_0289 IMG_0319 IMG_0269 IMG_0270 IMG_0316 IMG_0323 IMG_0274
    View more photos >
  • Tags

    Apple Blog blogging blogosfera bloguri blogvertising bucuresti business comics Digg FILMS fun Google internet intrebari iPhone iread jocuri Leopard links Manafu marketing myblog online OSX personal PHOTO Politice poze proiecte publicitate Rails roblogfest Romania Romanian Ruby spam stiri twitter viata video viral Web Wordpress youtube

Entries (RSS) and Comments (RSS).
Theme inspired by CrunchNotes, by Alex Brie.

Copyright © 2005-2008 alex brie . net. Unele articole pot contine tematici sau linkuri sponsorizate. Opiniile si idele sunt intodeauna ale autorului, care le imbratiseaza si le sustine.