![]() This is much faster than the postgres-pr gem, which is written in ruby. Next you'll want the pg gem, which is a native adapter for postgres. ![]() Note that you'll have to reload your terminal (or open a new tab) to pick up this change. If you installed with MacPorts, your path is likely `/opt/local/var/postgresql83/bin`, but if you used the installer, then it would be `/Library/PostgreSQL/8.4/bin`. Make sure to separate it with a colon to distinguish it from other paths. sudo vim /etc/profileįind the line that looks like this: PATH='/opt/local/bin:/opt/local/sbin.'Īdd your path at the end. Next, make sure that the bin folder is in your path. For a good MacPort installation walkthrough, check this article. Note that 8.4 is out, but some recommend using the same version that Heroku uses, namely 8.3. sudo port install postgresql83 postgresql83-server ![]() Something about 64 bit ruby, 32 bit gems - anyway the MacPorts method works for me on Snow Leopard. Update: Turns out I had problems with this package. Alternatively, you might want to use MacPorts. This is nice because I don't plan on using PostgreSQL all the time, only when I work on some projects.įirst, download the Precompiled 8.4 binary for Mac OS X 10.4+ from the Postgres website. Why? Because it installs a nice management console into your Applications folder along with some quick shortcuts to Start & Stop your server. There are numerous ways of installing it on Mac OS X, (including a nice & easy MacPorts installer) however I opted for the easier Mac installer. One such reason is if you plan on using Geokit, all of the geo math is done at the database level and thus not available on Sqlite. If you're doing any serious Rails work with Heroku you'll eventually want to run the same database server they are, namely PostgreSQL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |