Skip to content

Instantly share code, notes, and snippets.

@sofadesign
Created December 31, 2009 14:19
Show Gist options
  • Save sofadesign/266743 to your computer and use it in GitHub Desktop.
Save sofadesign/266743 to your computer and use it in GitHub Desktop.

Install appli Rails sur OSX 10.5

Ruby / Rails

http://developer.apple.com/tools/developonrailsleopard.html

sudo gem update --system
sudo gem install rails
sudo gem update rake
sudo gem update sqlite3-ruby
sudo gem install haml

Git OSX Installer

http://code.google.com/p/git-osx-installer/

Télecharger la dernière version 1.6.5.7 Intel leopard

Step 1 - Install Package

This installs git to /usr/local/git. Root access is required.

Step 2 - Run shell script

This step is optional.

Non-terminal programs don't inherit the system wide PATH and MANPATH variables that your terminal does. If you'd like them to be able to see Git, for whatever reason, you can run this script. It will add the PATH and MANPATH to your ~/.MacOSX/environment.plist file. You'll need to log out of your user account for that to take effect.

.setup git PATH… .sh

redémarrer la session

git config --global user.name "Pierre SuperScript" 
git config --global user.email "[email protected]"
git config --global --list

Bundles Textmate

http://solutions.treypiepmeier.com/2008/02/25/installing-git-on-os-x-leopard/

Install des bundles fournis (en double cliquant)

sudo ln -s `which git` /usr/bin/git

ou dans Préférence -> Advanced -> Shell Variables

TM_GIT -> /usr/local/git/bin/git

textmate comme editeur par defaut pour git:

mate ~/.bash_login

et ajouter

export GIT_EDITOR="mate -w"

Ajout clé ssh au dépôt tolix

http://help.github.com/mac-key-setup/

ll ~/.ssh
# generate si pas de clé
ssh-keygen -t rsa -C "[email protected]"
#
cat ~/.ssh/id_rsa.pub | pbcopy
# et tu me l'envoie par IM ou mail afin que je l'ajoute aux clés autorisées pour l'accès au dépôt

Initialisation de l'appli tolix

git clone [email protected]:tolix.git
mate tolix
cd tolix
git submodule init
git submodule update
cp config/database.yml.example config/database.yml
rake gems:install
rake db:create
rake db:migrate
script/server

Installation ImageMagick pour les images

http://dimitrivanheucke.be/blog/2009/08/imagemagick-and-ruby-on-osx/

Attention, XCode tools nécessaire… La compilation peut prendre du temps …

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment