From 96a6da0090e39e9da506baa70fbf3324262237e9 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Sun, 18 Feb 2007 14:58:28 +0000 Subject: [PATCH] Updated documentation mentions from "rake migrate" to "rake db:migrate" git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@446 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/doc/README_FOR_APP | 2 +- tracks/installation.html | 8 ++++---- tracks/lib/tasks/upgrade_sqlite_db.rake | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tracks/doc/README_FOR_APP b/tracks/doc/README_FOR_APP index 33bc3ddb..4fd0362b 100644 --- a/tracks/doc/README_FOR_APP +++ b/tracks/doc/README_FOR_APP @@ -15,7 +15,7 @@ While fully usable for everyday use, Tracks is still a work in progress. Make su ## Installation -Before you start, you need to make sure that you have Ruby 1.8.2 or 1.8.4 installed (1.8.3 is not supported, and 1.8.4 is recommended). Rails 1.1 and RedCloth are now included in the vendor directory of the distribution, so you don't need to install them yourself. You also need some kind of database. MySQL is probably the most popular, but it's also easy to use PostgreSQL or SQLite/SQLite3. Note that upgrading via the `rake migrate` command is quite a bit more tricky currently with SQLite and SQLite3. If you have Mac OS X Tiger, you already have Ruby 1.8.2 and SQLite3 installed, so all you need to do after installing Rails and Redcloth is to install the sqlite3-ruby gem (1.1.0). If you're using MySQL, you might want to install the native MySQL bindings to improve performance: +Before you start, you need to make sure that you have Ruby 1.8.2 or 1.8.4 installed (1.8.3 is not supported, and 1.8.4 is recommended). Rails 1.1 and RedCloth are now included in the vendor directory of the distribution, so you don't need to install them yourself. You also need some kind of database. MySQL is probably the most popular, but it's also easy to use PostgreSQL or SQLite/SQLite3. Note that upgrading via the `rake db:migrate` command is quite a bit more tricky currently with SQLite and SQLite3. If you have Mac OS X Tiger, you already have Ruby 1.8.2 and SQLite3 installed, so all you need to do after installing Rails and Redcloth is to install the sqlite3-ruby gem (1.1.0). If you're using MySQL, you might want to install the native MySQL bindings to improve performance: sudo gem install mysql diff --git a/tracks/installation.html b/tracks/installation.html index d617b3e8..af84e6fa 100644 --- a/tracks/installation.html +++ b/tracks/installation.html @@ -17,7 +17,7 @@

Installation

-

Before you start, you need to make sure that you have Ruby 1.8.2 installed. Rails 1.0 and RedCloth are now included in the vendor directory of the distribution, so you don't need to install them yourself. You also need some kind of database. MySQL is probably the most popular, but it's also easy to use PostgreSQL or SQLite/SQLite3. Note that upgrading via the rake migrate command is quite a bit more tricky currently with SQLite and SQLite3. If you have Mac OS X Tiger, you already have Ruby 1.8.2 and SQLite3 installed, so all you need to do after installing Rails and Redcloth is to install the sqlite3-ruby gem (1.1.0). If you're using MySQL, you might want to install the native MySQL bindings to improve performance:

+

Before you start, you need to make sure that you have Ruby 1.8.2 installed. Rails 1.0 and RedCloth are now included in the vendor directory of the distribution, so you don't need to install them yourself. You also need some kind of database. MySQL is probably the most popular, but it's also easy to use PostgreSQL or SQLite/SQLite3. Note that upgrading via the rake db:migrate command is quite a bit more tricky currently with SQLite and SQLite3. If you have Mac OS X Tiger, you already have Ruby 1.8.2 and SQLite3 installed, so all you need to do after installing Rails and Redcloth is to install the sqlite3-ruby gem (1.1.0). If you're using MySQL, you might want to install the native MySQL bindings to improve performance:

sudo gem install mysql
 
@@ -53,18 +53,18 @@
  • Copy the file config/database.yml.tmpl to config/database.yml, config/environment.rb.tmpl to config/environment.rb and log.tmpl to log.
  • Open the tracks/config/database.yml file, and enter your username and password details for the database you just set up under the 'production' and 'development' sections. NB: If you do set up the entry for 'test', make sure that you specify a different database, or when you run tests, they will overwrite your data. It's very important that you don't use TABS in any of the *.yml files. Just use spaces to indent.
  • Open the file config/environment.rb and look at the last line which should read: SALT = "change-me". Change the word change-me to something else of your choosing. This string will be used as a 'salt' to encrypt your password and make it a bit more secure. Also look at the timezone setting at the bottom. You can leave it commented out if your server is in the same time zone as you, but you may need to adjust it if your server is in a different time zone.
  • -
  • Run 'rake migrate', which will create the necessary tables in your database, including some required contents:
  • +
  • Run 'rake db:migrate', which will create the necessary tables in your database, including some required contents:
  •    
         cd /PATHTO/TRACKS
    -    rake migrate
    +    rake db:migrate