2.1. OS X
The easiest way to get started on OS X is to use
Locomotive (Figure A-3), which is very similar to
Instant Rails on Windows, except that it uses the Lighttpd for the
web server (instead of Apache) and SQLite for the database (instead
of MySQL). For more details about Locomotive, go to its home page
at http://locomotive.raaum.org.
-
-
Simply drag and drop the file you just
downloaded to your Applications
folder.
-
This book uses MySQL for the development
database, so we recommend that you install and use MySQL instead of
the SQLite included in Locomotive. Download the latest MySQL
packages from http://dev.mysql.com/downloads/
and run the installer.
-
To start Locomotive, double-click Locomotive.app.
That's all there is to it!
2.1.1. TextMate
and RadRails
The commercial text-editor-on-steroids TextMate
(Figure A-4)
is very popular with Rails developers on OS X. Locomotive provides
some minimal built-in support for TextMate. You can right-click a
Rails app in Locomotive and choose to open its directory in
TextMate.
TextMate is inexpensive, but not free. You can
find out more about TextMate here: http://macromates.com.
If you want more than a pumped-up text editor,
you'll be happy to know that the excellent RadRails IDE also runs
on OS X. See the section "RadRails,"
earlier in this chapter.
Once installed, you can configure RadRails to
work with your Locomotive installation by following the same steps
shown in the Windows section of this appendix. |