mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-07 09:48:50 +01:00
merges changes from tracks1.6 to trunk
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@866 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
8edcabf25e
commit
d07d0c4f4d
6 changed files with 143 additions and 91 deletions
|
|
@ -11,6 +11,8 @@
|
|||
* Copyright: (cc) 2004-2008 rousette.org.uk.
|
||||
* License: GNU GPL
|
||||
|
||||
**An important note for version 1.6: OpenID support is broken in this release. The fix isn't trivial because of changes to the `ruby-openid` gem, so we wanted to get this version out now and fix OpenID for the next release. If you depend on OpenID integration, we recommend waiting until the next release.**
|
||||
|
||||
All the documentation for Tracks can be found within the /doc directory. It contains a manual in HTML (manual.html) or PDF format (manual.pdf), and this includes full instructions for both new installations and upgrades from older installations of Tracks. The instructions might appear long and intimidatingly complex, but that is mostly because of the number of different platforms supported, and the different configurations which can be used (e.g. running Tracks on your local computer or on a remote server). If you choose the appropriate section for your situation (installation vs. upgrade), and use the easiest (recommended) method, you should find the instructions easy to follow. If you encounter problems, try searching the wiki, forum or mailing list (URLs above), and ask a question if you cannot find a solution to your problem.
|
||||
|
||||
For those upgrading, change notes are available in /doc/CHANGELOG. If you are thinking about contributing towards the development of Tracks, please read /doc/README_DEVELOPERS for general information, or /doc/tracks_api_wrapper.rb for information on Tracks' API.
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ Trac (for bug reports and feature requests): http://dev.rousette.org.uk/report/6
|
|||
Wiki (deprecated - please use Trac): http://www.rousette.org.uk/projects/wiki/
|
||||
|
||||
== Version 1.6
|
||||
1. upgrade to rails 2.0
|
||||
2. new mobile interface
|
||||
1. upgrade to rails 2.0.2
|
||||
2. new mobile interface (with some iPhone compatibility fixes)
|
||||
3. new search functionality to search on todos, projects, contexts and notes
|
||||
4. Bugfixes
|
||||
|
||||
|
|
|
|||
|
|
@ -14,22 +14,24 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
<meta name="Date" content="2008-04-07" />
|
||||
<meta name="Format" content="complete" />
|
||||
<meta name="LaTeXXSLT" content="memoir-twosided-manual.xslt" />
|
||||
<meta name="Revision" content="$Id: manual.markdown 811 2008-04-07 20:21:00Z bsag $" />
|
||||
<title>Tracks 1.5 Manual</title>
|
||||
<meta name="Version" content="1.5" />
|
||||
<meta name="Revision" content="$Id: manual.markdown 864 2008-06-03 17:01:00Z bsag $" />
|
||||
<title>Tracks 1.6 Manual</title>
|
||||
<meta name="Version" content="1.6" />
|
||||
<meta name="XMP" content="CCAttributionShareAlike" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- The HTML file manual.html is generated from manual.markdown, so make edits to the *.markdown file -->
|
||||
|
||||
<h2 id="installingtracks1.5">Installing Tracks 1.5</h2>
|
||||
<h2 id="installingtracks1.6">Installing Tracks 1.6</h2>
|
||||
|
||||
<h3 id="introduction">Introduction</h3>
|
||||
|
||||
<p>Tracks 1.5 has been thoroughly beta tested by a large number of people, and should be fully stable for everyday use. However, once set up, Tracks will contain the majority of your plans for your work and personal life, so it’s only sensible to make sure that you have frequent, reliable backups of your data. Full changenotes on the release can be found in <code>doc/CHANGELOG</code>. Full API documentation can be found at <code>doc/app/index.html</code>, once you have run <code>rake appdoc</code></p>
|
||||
<p><strong>An important note for version 1.6: OpenID support is broken in this release. The fix isn’t trivial because of changes to the <code>ruby-openid</code> gem, so we wanted to get this version out now and fix OpenID for the next release. If you depend on OpenID integration, we recommend waiting until the next release.</strong></p>
|
||||
|
||||
<p>There are two methods of downloading Tracks 1.5 <strong>(N.B. These links will not work until Tracks 1.5 final is released)</strong>):</p>
|
||||
<p>Tracks 1.6 has been thoroughly beta tested by a large number of people, and should be fully stable for everyday use. However, once set up, Tracks will contain the majority of your plans for your work and personal life, so it’s only sensible to make sure that you have frequent, reliable backups of your data. Full changenotes on the release can be found in <code>doc/CHANGELOG</code>. Full API documentation can be found at <code>doc/app/index.html</code>, once you have run <code>rake appdoc</code></p>
|
||||
|
||||
<p>There are two methods of downloading Tracks 1.6:</p>
|
||||
|
||||
<ol>
|
||||
<li>(Recommended for most people) Download the <a href="http://www.rousette.org.uk/projects/files/tracks-current.zip">zipped package</a>, and unzip in your preferred location (e.g. <code>~/Sites</code> for Mac OS X users).</li>
|
||||
|
|
@ -59,7 +61,7 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
|
||||
<ol>
|
||||
<li>Tracks itself</li>
|
||||
<li>Rails 1.2.5 (installed in the <code>/vendor/rails</code> directory, so you do not need to install Rails yourself)</li>
|
||||
<li>Rails 2.0.2 (installed in the <code>/vendor/rails</code> directory, so you do not need to install Rails yourself)</li>
|
||||
<li>An empty SQLite3 database, set up with the correct database schema</li>
|
||||
</ol>
|
||||
|
||||
|
|
@ -73,11 +75,11 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
<li><strong>Database</strong>. The easiest option is to use SQLite3, as the database is included in the package. All you need then is the <code>sqlite3-ruby</code> gem, as described in step 2, and the SQLite3 libraries and binary (see <a href="http://sqlite.org/download.html">sqlite.org</a> for downloads and installation instructions). If you want to use MySQL, download and install a package for your platform from <a href="http://dev.mysql.com/downloads/mysql/5.0.html">MySQL.com</a>. The basic steps for Postgresql should be similar to those for MySQL, but they will not be discussed further here.</li>
|
||||
</ol>
|
||||
|
||||
<p>If you are using Unix, you might find <a href="http://www.cooldown.com.ar/2006/12/16/install-tracks-on-ubuntu-or-debian/">this guide</a> by c00i90wn helpful. It was written for Tracks 1.043, but it should work for Tracks 1.5.</p>
|
||||
<p>If you are using Unix, you might find <a href="http://www.cooldown.com.ar/2006/12/16/install-tracks-on-ubuntu-or-debian/">this guide</a> by c00i90wn helpful. It was written for Tracks 1.043, but it should work for Tracks 1.6.</p>
|
||||
|
||||
<h3 id="installation">Installation</h3>
|
||||
|
||||
<p>This description is intended for people installing Tracks from scratch. If you would like to upgrade an existing installation, please see <a href="#upgrading" title="Upgrading to Tracks 1.5">Upgrading to Tracks 1.5</a>.</p>
|
||||
<p>This description is intended for people installing Tracks from scratch. If you would like to upgrade an existing installation, please see <a href="#upgrading" title="Upgrading to Tracks 1.6">Upgrading to Tracks 1.6</a>.</p>
|
||||
|
||||
<ol>
|
||||
<li><a href="#unzip_install" title="Unzip Tracks and install">Unzip tracks</a> and install in a directory</li>
|
||||
|
|
@ -85,7 +87,7 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
<ol><li>SQLite3 - change database.yml to point to SQLite3 database</li>
|
||||
<li>MySQL - create new MySQL db and grant all privileges </li></ol></li>
|
||||
<li><a href="#config_install" title="Configure variables">Configure some variables</a></li>
|
||||
<li>Populate the database with the <a href="#rake_install" title="Populate your database with the Tracks 1.5 schema">Tracks 1.5 schema</a></li>
|
||||
<li>Populate the database with the <a href="#rake_install" title="Populate your database with the Tracks 1.6 schema">Tracks 1.6 schema</a></li>
|
||||
<li><a href="#startserver_install" title="Start the server">Start the server</a></li>
|
||||
<li><a href="#signup_install" title="Visit Tracks in a browser">Visit Tracks in a browser</a></li>
|
||||
<li><a href="#customise_install" title="Customise Tracks">Customise Tracks</a></li>
|
||||
|
|
@ -101,7 +103,7 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
|
||||
<ol>
|
||||
<li><strong>SQLite3</strong>. All you need to do is make sure that you point Tracks to the included SQLite3 database in <code>/db</code> in the next step, <a href="#config_install" title="Configure variables">Configure variables</a>.</li>
|
||||
<li><strong>MySQL</strong>. Once you have MySQL installed, you need to create a database to use with Tracks 1.5. Go into a terminal and issue the following commands:</li>
|
||||
<li><strong>MySQL</strong>. Once you have MySQL installed, you need to create a database to use with Tracks 1.6. Go into a terminal and issue the following commands:</li>
|
||||
</ol>
|
||||
|
||||
<pre>
|
||||
|
|
@ -116,23 +118,23 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
<h4 id="config_install">Configure variables</h4>
|
||||
|
||||
<ol>
|
||||
<li>If you downloaded Tracks 1.5 via Subversion, you need to duplicate the files <code>database.yml.tmpl</code> and <code>environment.yml.tmpl</code> and remove the <code>*.tmpl</code> extension from the duplicates. Similarly, duplicate <code>/log.tmpl</code> and remove the <code>*.tmpl</code> extension, then edit the files as described in steps 2 and 3.</li>
|
||||
<li>If you downloaded Tracks 1.6 via Subversion, you need to duplicate the files <code>database.yml.tmpl</code> and <code>environment.yml.tmpl</code> and remove the <code>*.tmpl</code> extension from the duplicates. Similarly, duplicate <code>/log.tmpl</code> and remove the <code>*.tmpl</code> extension, then edit the files as described in steps 2 and 3.</li>
|
||||
<li>Open the file <code>/config/database.yml</code> and edit the <code>production:</code> section with the details of your database. If you are using MySQL the <code>adapter:</code> line should read <code>adapter: mysql</code>, <code>host: localhost</code> (in the majority of cases), and your username and password should match those you assigned when you created the database. If you are using SQLite3, you should have only two lines under the production section: <code>adapter: sqlite3</code> and <code>database: db/tracks-15-blank.db</code>. If you downloaded the zipped file, the database.yml file is already configured to use the provided SQLite3 file.</li>
|
||||
<li>Open the file <code>/config/environment.rb</code>, and read through the settings to make sure that they suit your setup. In most cases, all you need to change is the <code>SALT = "change-me"</code> line (change the string “change-me” to some other string of your choice), and the time zone setting.</li>
|
||||
<li>If you are using Windows, you may need to check the ‘shebang’ lines (<code>#!/usr/bin/env ruby</code>) of the <code>/public/dispatch.*</code> files and all the files in the <code>/script</code> directory. They are set to <code>#!/usr/bin/env ruby</code> by default. This should work for all *nix based setups (Linux or Mac OS X), but Windows users will probably have to change it to something like <code>#c:/ruby/bin/ruby</code> to point to the Ruby binary on your system.</li>
|
||||
</ol>
|
||||
|
||||
<h4 id="rake_install">Populate your database with the Tracks 1.5 schema</h4>
|
||||
<h4 id="rake_install">Populate your database with the Tracks 1.6 schema</h4>
|
||||
|
||||
<p>Open a terminal and change into the root of your Tracks 1.5 directory. Enter the following command:</p>
|
||||
<p>Open a terminal and change into the root of your Tracks 1.6 directory. Enter the following command:</p>
|
||||
|
||||
<p><code>rake db:migrate RAILS_ENV=production</code></p>
|
||||
|
||||
<p>This will update your database with the required schema for Tracks 1.5. If you are using SQLite3, it is not strictly necessary, because the SQLite3 database included with Tracks already has the schema included in it, but it should not do any harm to run the command (nothing will happen if it is up to date).</p>
|
||||
<p>This will update your database with the required schema for Tracks 1.6. If you are using SQLite3, it is not strictly necessary, because the SQLite3 database included with Tracks already has the schema included in it, but it should not do any harm to run the command (nothing will happen if it is up to date).</p>
|
||||
|
||||
<h4 id="startserver_install">Start the server</h4>
|
||||
|
||||
<p>While still in the Terminal inside the Tracks 1.5 root directory, issue the following command:</p>
|
||||
<p>While still in the Terminal inside the Tracks 1.6 root directory, issue the following command:</p>
|
||||
|
||||
<p><code>script/server -e production</code></p>
|
||||
|
||||
|
|
@ -146,7 +148,19 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
|
||||
<p>Once logged in, add some Contexts and Projects, and then go ahead and add your actions. You might also want to visit the Preferences page to edit various settings to your liking. Have fun!</p>
|
||||
|
||||
<h2 id="upgrading">Upgrading to Tracks 1.5</h2>
|
||||
<h2 id="upgrading">Upgrading to Tracks 1.6</h2>
|
||||
|
||||
<h3 id="upgrading_1.5">Upgrading from Tracks 1.5</h3>
|
||||
|
||||
<p>There are no changes to the database between 1.5 and 1.6, but you will need to upgrade your <code>config/environment.rb</code> with the new content from <code>config/environment.rb.tmpl</code> included in 1.6, as the format of this file has changed a great deal between 1.5 and 1.6.</p>
|
||||
|
||||
<ol>
|
||||
<li><a href="#backup_upgrade" title="Backing up">Back up</a> your existing database and installation of Tracks</li>
|
||||
<li><a href="#install_upgrade" title="Install Tracks 1.6">Install Tracks 1.6</a> in a new directory</li>
|
||||
<li><a href="#config_upgrade" title="Copy over old configuration files">Copy over</a> a few configuration files from your Tracks 1.043 directory. If using SQLite3, copy the old database into the new Tracks 1.6 directory</li>
|
||||
<li>Run <code>script/server</code> inside your Tracks 1.6 directory to <a href="#startserver_upgrade" title="Start the server">start up Tracks 1.6</a>.</li>
|
||||
<li>Once you are happy that everything is working well, <a href="#cleanup_upgrade" title="Clean up your old installation">delete your old Tracks directory</a>.</li>
|
||||
</ol>
|
||||
|
||||
<h3 id="upgrading_1043">Upgrading from Tracks 1.043</h3>
|
||||
|
||||
|
|
@ -154,10 +168,10 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
|
||||
<ol>
|
||||
<li><a href="#backup_upgrade" title="Backing up">Back up</a> your existing database and installation of Tracks</li>
|
||||
<li><a href="#install_upgrade" title="Install Tracks 1.5">Install Tracks 1.5</a> in a new directory</li>
|
||||
<li><a href="#config_upgrade" title="Copy over old configuration files">Copy over</a> a few configuration files from your Tracks 1.043 directory. If using SQLite3, copy the old database into the new Tracks 1.5 directory</li>
|
||||
<li><a href="#install_upgrade" title="Install Tracks 1.6">Install Tracks 1.6</a> in a new directory</li>
|
||||
<li><a href="#config_upgrade" title="Copy over old configuration files">Copy over</a> a few configuration files from your Tracks 1.043 directory. If using SQLite3, copy the old database into the new Tracks 1.6 directory</li>
|
||||
<li>Run <code>rake db:migrate RAILS_ENV=production</code> to <a href="#rake_upgrade" title="Update your old database to the new format">update your old database</a> to the new schema – you did back up your database didn’t you?</li>
|
||||
<li>Run <code>script/server</code> inside your Tracks 1.5 directory to <a href="#startserver_upgrade" title="Start the server">start up Tracks 1.5</a>.</li>
|
||||
<li>Run <code>script/server</code> inside your Tracks 1.6 directory to <a href="#startserver_upgrade" title="Start the server">start up Tracks 1.6</a>.</li>
|
||||
<li>Once you are happy that everything is working well, <a href="#cleanup_upgrade" title="Clean up your old installation">delete your old Tracks directory</a>.</li>
|
||||
</ol>
|
||||
|
||||
|
|
@ -167,11 +181,11 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
|
||||
<p><code>mysqldump –-user [user name] –-password=[password] [database name] > [dump file]</code></p>
|
||||
|
||||
<p>Rename your old Tracks installation (e.g. to ‘tracks-old’) so that you can install Tracks 1.5 along side it.</p>
|
||||
<p>Rename your old Tracks installation (e.g. to ‘tracks-old’) so that you can install Tracks 1.6 along side it.</p>
|
||||
|
||||
<h4 id="install_upgrade">Install Tracks 1.5</h4>
|
||||
<h4 id="install_upgrade">Install Tracks 1.6</h4>
|
||||
|
||||
<p>There are two methods of downloading Tracks 1.5:</p>
|
||||
<p>There are two methods of downloading Tracks 1.6:</p>
|
||||
|
||||
<ol>
|
||||
<li>(Recommended for most people) Download the <a href="http://www.rousette.org.uk/projects/files/tracks-current.zip">zipped package</a>, and unzip in your preferred location (e.g. <code>~/Sites</code> for Mac OS X users).</li>
|
||||
|
|
@ -191,7 +205,7 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
|
||||
<ol>
|
||||
<li>Copy <code>/config/database.yml</code> from your old Tracks directory to the same location in the new one. Double check that the information there is still correct.</li>
|
||||
<li>Duplicate <code>/config/environment.rb.tmpl</code> in the Tracks 1.5 directory, and rename the file to <code>environment.rb</code>. Open the file and alter the line <code>SALT = "change-me"</code> so that it matches what you had in this file in your old installation. You may also want to change the time zone setting as appropriate for your location (<code>ENV['TZ'] = 'US/Eastern'</code>). If you have made any other customisations to <code>environment.rb</code> in the past, copy those over, but the contents of the file have changed quite a lot since 1.043, so check it carefully.</li>
|
||||
<li>Duplicate <code>/config/environment.rb.tmpl</code> in the Tracks 1.6 directory, and rename the file to <code>environment.rb</code>. Open the file and alter the line <code>SALT = "change-me"</code> so that it matches what you had in this file in your old installation. You may also want to change the time zone setting as appropriate for your location (<code>ENV['TZ'] = 'US/Eastern'</code>). If you have made any other customisations to <code>environment.rb</code> in the past, copy those over, but the contents of the file have changed quite a lot since 1.043, so check it carefully.</li>
|
||||
<li>Copy your <code>/log</code> directory over from your old installation to the root of the new one, or just rename <code>/log.tmpl</code> to <code>log</code> to start afresh.</li>
|
||||
<li>If you are using SQLite3, copy your database from <code>/db</code> in your old Tracks directory to the same location in the new one.</li>
|
||||
<li>If you are using Windows, you may need to check the ‘shebang’ lines (<code>#!/usr/bin/env ruby</code>)<a href="#fn:env" id="fnref:env" class="footnote">1</a> of the <code>/public/dispatch.*</code> files and all the files in the <code>/script</code> directory. They are set to <code>#!/usr/bin/env ruby</code> by default. Check the format of those lines in your old installation, and change the new ones as necessary.</li>
|
||||
|
|
@ -199,7 +213,7 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
|
||||
<h4 id="rake_upgrade">Update your old database to the new format</h4>
|
||||
|
||||
<p>In a terminal, change directories so that you are inside the Tracks 1.5 directory. Then issue the command to update your Tracks 1.043 database to the format required for Tracks 1.5:</p>
|
||||
<p>In a terminal, change directories so that you are inside the Tracks 1.6 directory. Then issue the command to update your Tracks 1.043 database to the format required for Tracks 1.6:</p>
|
||||
|
||||
<p><code>rake db:migrate RAILS_ENV=production</code></p>
|
||||
|
||||
|
|
@ -207,7 +221,7 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
|
||||
<h4 id="startserver_upgrade">Start the server</h4>
|
||||
|
||||
<p>If you’re still in the Tracks 1.5 root directory in a terminal, enter the following command to start up Tracks in production mode:</p>
|
||||
<p>If you’re still in the Tracks 1.6 root directory in a terminal, enter the following command to start up Tracks in production mode:</p>
|
||||
|
||||
<p><code>script/server -e production</code></p>
|
||||
|
||||
|
|
@ -216,7 +230,7 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
|
||||
<h4 id="cleanup_upgrade">Clean up your old installation</h4>
|
||||
|
||||
<p>Once you’re certain that your new Tracks 1.5 installation is working perfectly, you can delete your old Tracks directory.</p>
|
||||
<p>Once you’re certain that your new Tracks 1.6 installation is working perfectly, you can delete your old Tracks directory.</p>
|
||||
|
||||
<h3 id="upgradingfromversionspriorto1.043">Upgrading from versions prior to 1.043</h3>
|
||||
|
||||
|
|
@ -234,7 +248,7 @@ http://creativecommons.org/licenses/by-nc-sa/3.0/" />
|
|||
<li>Run the command <code>rake db_schema_import</code> inside the Tracks directory. This should import the upgraded schema for 1.043 into your new database.</li>
|
||||
<li>Run the command <code>rake load_exported_fixtures</code> which will import the contents of your old database from the fixtures files in <code>db/exported_fixtures</code>.</li>
|
||||
<li>If you are using Windows, you may need to check the ‘shebang’ lines (<code>#!/usr/bin/env ruby</code>)<a href="#fn:env" id="fnref:env" class="footnote">2</a> of the <code>/public/dispatch.*</code> files and all the files in the <code>/script</code> directory. They are set to <code>#!/usr/bin/env ruby</code> by default. Check the format of those lines in your old installation, and change the new ones as necessary.</li>
|
||||
<li>Try starting up the server with <code>script/server</code> to make sure that all your data has migrated successfully. If all is well, follow the instructions above to <a href="#upgrading_1043" title="Upgrading from Tracks 1.043">upgrade from version 1.043</a> to Tracks 1.5. If you need to access Tracks from a mobile/cellular phone browser, visit <code>http://yourdomain.com/mobile/</code>. This mobile version is a special, lightweight version of Tracks, designed to use on a mobile browser.</li>
|
||||
<li>Try starting up the server with <code>script/server</code> to make sure that all your data has migrated successfully. If all is well, follow the instructions above to <a href="#upgrading_1043" title="Upgrading from Tracks 1.043">upgrade from version 1.043</a> to Tracks 1.6. If you need to access Tracks from a mobile/cellular phone browser, visit <code>http://yourdomain.com/mobile/</code>. This mobile version is a special, lightweight version of Tracks, designed to use on a mobile browser.</li>
|
||||
</ol>
|
||||
|
||||
<div class="footnotes">
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
Title: Tracks 1.5 Manual
|
||||
Title: Tracks 1.6 Manual
|
||||
Author: Tracks Development Team
|
||||
Date: 2008-04-07
|
||||
Revision: $Id: manual.markdown 811 2008-04-07 20:21:00Z bsag $
|
||||
Version: 1.5
|
||||
Revision: $Id: manual.markdown 864 2008-06-03 17:01:00Z bsag $
|
||||
Version: 1.6
|
||||
Copyright: 2008 rousette.org.uk
|
||||
This work is licensed under a Creative Commons License.
|
||||
http://creativecommons.org/licenses/by-nc-sa/3.0/
|
||||
|
|
@ -14,13 +14,15 @@ CSS: manual.css
|
|||
|
||||
<!-- The HTML file manual.html is generated from manual.markdown, so make edits to the *.markdown file -->
|
||||
|
||||
# Installing Tracks 1.5 #
|
||||
# Installing Tracks 1.6 #
|
||||
|
||||
## Introduction ##
|
||||
|
||||
Tracks 1.5 has been thoroughly beta tested by a large number of people, and should be fully stable for everyday use. However, once set up, Tracks will contain the majority of your plans for your work and personal life, so it's only sensible to make sure that you have frequent, reliable backups of your data. Full changenotes on the release can be found in `doc/CHANGELOG`. Full API documentation can be found at `doc/app/index.html`, once you have run `rake appdoc`
|
||||
**An important note for version 1.6: OpenID support is broken in this release. The fix isn't trivial because of changes to the `ruby-openid` gem, so we wanted to get this version out now and fix OpenID for the next release. If you depend on OpenID integration, we recommend waiting until the next release.**
|
||||
|
||||
There are two methods of downloading Tracks 1.5 **(N.B. These links will not work until Tracks 1.5 final is released)**):
|
||||
Tracks 1.6 has been thoroughly beta tested by a large number of people, and should be fully stable for everyday use. However, once set up, Tracks will contain the majority of your plans for your work and personal life, so it's only sensible to make sure that you have frequent, reliable backups of your data. Full changenotes on the release can be found in `doc/CHANGELOG`. Full API documentation can be found at `doc/app/index.html`, once you have run `rake appdoc`
|
||||
|
||||
There are two methods of downloading Tracks 1.6:
|
||||
|
||||
1. (Recommended for most people) Download the [zipped package](http://www.rousette.org.uk/projects/files/tracks-current.zip), and unzip in your preferred location (e.g. `~/Sites` for Mac OS X users).
|
||||
2. Download using Subversion:
|
||||
|
|
@ -46,7 +48,7 @@ If you'd like an easy way to access Tracks from any internet-connected computer,
|
|||
### What is included with the Tracks package ###
|
||||
|
||||
1. Tracks itself
|
||||
2. Rails 1.2.5 (installed in the `/vendor/rails` directory, so you do not need to install Rails yourself)
|
||||
2. Rails 2.0.2 (installed in the `/vendor/rails` directory, so you do not need to install Rails yourself)
|
||||
3. An empty SQLite3 database, set up with the correct database schema
|
||||
|
||||
### What you need to install [whatyouneed] ###
|
||||
|
|
@ -57,18 +59,18 @@ If you don't want to (or can't) use one of the all in one installations, you'll
|
|||
2. **RubyGems**. The gems needed by Rails to interact with the database have to be compiled on the platform on which they will be run, so we cannot include them with the Tracks package, unlike some other gems. So you will need to [download](http://rubyforge.org/frs/?group_id=126) and install RubyGems (run `ruby setup.rb` after extracting the package). Note that once again, Mac OS X Leopard users get an easy life, because RubyGems and the SQLite3 gem is already installed. Once installed you can use RubyGems to install the gems you need for your database. If you are using SQLite3, run `sudo gem install sqlite3-ruby`, then select the appropriate package for your platform (version 1.2.1 recommended). You can use MySQL without installing a gem, but installing the gem can speed things up a bit: `sudo install gem mysql`. If you're using Leopard, there are a few work-arounds necessary, which are explained on [Mac OS Forge](http://trac.macosforge.org/projects/ruby/wiki/Troubleshooting#IcannotbuildrubymysqlonLeopardwithmysql.combinaries). The ruby-mysql bindings can sometimes be a bit troublesome to install, so to be honest, it's probably not worth the bother unless you are trying to wring maximum speed out of your system. If you are using PostgreSQL, then you can install a postgres gem: `gem install postgres`.
|
||||
3. **Database**. The easiest option is to use SQLite3, as the database is included in the package. All you need then is the `sqlite3-ruby` gem, as described in step 2, and the SQLite3 libraries and binary (see [sqlite.org](http://sqlite.org/download.html) for downloads and installation instructions). If you want to use MySQL, download and install a package for your platform from [MySQL.com](http://dev.mysql.com/downloads/mysql/5.0.html). The basic steps for Postgresql should be similar to those for MySQL, but they will not be discussed further here.
|
||||
|
||||
If you are using Unix, you might find [this guide](http://www.cooldown.com.ar/2006/12/16/install-tracks-on-ubuntu-or-debian/) by c00i90wn helpful. It was written for Tracks 1.043, but it should work for Tracks 1.5.
|
||||
If you are using Unix, you might find [this guide](http://www.cooldown.com.ar/2006/12/16/install-tracks-on-ubuntu-or-debian/) by c00i90wn helpful. It was written for Tracks 1.043, but it should work for Tracks 1.6.
|
||||
|
||||
## Installation ##
|
||||
|
||||
This description is intended for people installing Tracks from scratch. If you would like to upgrade an existing installation, please see [Upgrading to Tracks 1.5][upgrading].
|
||||
This description is intended for people installing Tracks from scratch. If you would like to upgrade an existing installation, please see [Upgrading to Tracks 1.6][upgrading].
|
||||
|
||||
1. [Unzip tracks][unzip_install] and install in a directory
|
||||
2. Decide on a [database][database_install] to use
|
||||
1. SQLite3 - change database.yml to point to SQLite3 database
|
||||
2. MySQL - create new MySQL db and grant all privileges
|
||||
3. [Configure some variables][config_install]
|
||||
4. Populate the database with the [Tracks 1.5 schema][rake_install]
|
||||
4. Populate the database with the [Tracks 1.6 schema][rake_install]
|
||||
5. [Start the server][startserver_install]
|
||||
6. [Visit Tracks in a browser][signup_install]
|
||||
7. [Customise Tracks][customise_install]
|
||||
|
|
@ -82,7 +84,7 @@ Unzip the package and move Tracks into the directory you want to run it from. Fo
|
|||
Before you go any further, you need to decide which database you will use. See the [What you need to install][whatyouneed] section for details on installing the required components for you choice of database.
|
||||
|
||||
1. **SQLite3**. All you need to do is make sure that you point Tracks to the included SQLite3 database in `/db` in the next step, [Configure variables][config_install].
|
||||
2. **MySQL**. Once you have MySQL installed, you need to create a database to use with Tracks 1.5. Go into a terminal and issue the following commands:
|
||||
2. **MySQL**. Once you have MySQL installed, you need to create a database to use with Tracks 1.6. Go into a terminal and issue the following commands:
|
||||
<pre>
|
||||
<code>
|
||||
mysql -uroot -p
|
||||
|
|
@ -94,22 +96,22 @@ Before you go any further, you need to decide which database you will use. See t
|
|||
|
||||
### Configure variables [config_install] ###
|
||||
|
||||
1. If you downloaded Tracks 1.5 via Subversion, you need to duplicate the files `database.yml.tmpl` and `environment.yml.tmpl` and remove the `*.tmpl` extension from the duplicates. Similarly, duplicate `/log.tmpl` and remove the `*.tmpl` extension, then edit the files as described in steps 2 and 3.
|
||||
1. If you downloaded Tracks 1.6 via Subversion, you need to duplicate the files `database.yml.tmpl` and `environment.yml.tmpl` and remove the `*.tmpl` extension from the duplicates. Similarly, duplicate `/log.tmpl` and remove the `*.tmpl` extension, then edit the files as described in steps 2 and 3.
|
||||
2. Open the file `/config/database.yml` and edit the `production:` section with the details of your database. If you are using MySQL the `adapter:` line should read `adapter: mysql`, `host: localhost` (in the majority of cases), and your username and password should match those you assigned when you created the database. If you are using SQLite3, you should have only two lines under the production section: `adapter: sqlite3` and `database: db/tracks-15-blank.db`. If you downloaded the zipped file, the database.yml file is already configured to use the provided SQLite3 file.
|
||||
3. Open the file `/config/environment.rb`, and read through the settings to make sure that they suit your setup. In most cases, all you need to change is the `SALT = "change-me"` line (change the string "change-me" to some other string of your choice), and the time zone setting.
|
||||
4. If you are using Windows, you may need to check the 'shebang' lines (`#!/usr/bin/env ruby`) of the `/public/dispatch.*` files and all the files in the `/script` directory. They are set to `#!/usr/bin/env ruby` by default. This should work for all *nix based setups (Linux or Mac OS X), but Windows users will probably have to change it to something like `#c:/ruby/bin/ruby` to point to the Ruby binary on your system.
|
||||
|
||||
### Populate your database with the Tracks 1.5 schema [rake_install] ###
|
||||
### Populate your database with the Tracks 1.6 schema [rake_install] ###
|
||||
|
||||
Open a terminal and change into the root of your Tracks 1.5 directory. Enter the following command:
|
||||
Open a terminal and change into the root of your Tracks 1.6 directory. Enter the following command:
|
||||
|
||||
`rake db:migrate RAILS_ENV=production`
|
||||
|
||||
This will update your database with the required schema for Tracks 1.5. If you are using SQLite3, it is not strictly necessary, because the SQLite3 database included with Tracks already has the schema included in it, but it should not do any harm to run the command (nothing will happen if it is up to date).
|
||||
This will update your database with the required schema for Tracks 1.6. If you are using SQLite3, it is not strictly necessary, because the SQLite3 database included with Tracks already has the schema included in it, but it should not do any harm to run the command (nothing will happen if it is up to date).
|
||||
|
||||
### Start the server [startserver_install] ###
|
||||
|
||||
While still in the Terminal inside the Tracks 1.5 root directory, issue the following command:
|
||||
While still in the Terminal inside the Tracks 1.6 root directory, issue the following command:
|
||||
|
||||
`script/server -e production`
|
||||
|
||||
|
|
@ -123,17 +125,28 @@ Visit `http://0.0.0.0:3000/signup` in a browser (or whatever URL and port was re
|
|||
|
||||
Once logged in, add some Contexts and Projects, and then go ahead and add your actions. You might also want to visit the Preferences page to edit various settings to your liking. Have fun!
|
||||
|
||||
# Upgrading to Tracks 1.5 [upgrading] #
|
||||
# Upgrading to Tracks 1.6 [upgrading] #
|
||||
|
||||
## Upgrading from Tracks 1.5 [upgrading_1.5] ##
|
||||
|
||||
There are no changes to the database between 1.5 and 1.6, but you will need to upgrade your `config/environment.rb` with the new content from `config/environment.rb.tmpl` included in 1.6, as the format of this file has changed a great deal between 1.5 and 1.6.
|
||||
|
||||
1. [Back up][backup_upgrade] your existing database and installation of Tracks
|
||||
2. [Install Tracks 1.6][install_upgrade] in a new directory
|
||||
3. [Copy over][config_upgrade] a few configuration files from your Tracks 1.043 directory. If using SQLite3, copy the old database into the new Tracks 1.6 directory
|
||||
4. Run `script/server` inside your Tracks 1.6 directory to [start up Tracks 1.6][startserver_upgrade].
|
||||
5. Once you are happy that everything is working well, [delete your old Tracks directory][cleanup_upgrade].
|
||||
|
||||
|
||||
## Upgrading from Tracks 1.043 [upgrading_1043] ##
|
||||
|
||||
This should be a relatively straightforward, and involves the following main steps:
|
||||
|
||||
1. [Back up][backup_upgrade] your existing database and installation of Tracks
|
||||
2. [Install Tracks 1.5][install_upgrade] in a new directory
|
||||
3. [Copy over][config_upgrade] a few configuration files from your Tracks 1.043 directory. If using SQLite3, copy the old database into the new Tracks 1.5 directory
|
||||
2. [Install Tracks 1.6][install_upgrade] in a new directory
|
||||
3. [Copy over][config_upgrade] a few configuration files from your Tracks 1.043 directory. If using SQLite3, copy the old database into the new Tracks 1.6 directory
|
||||
5. Run `rake db:migrate RAILS_ENV=production` to [update your old database][rake_upgrade] to the new schema -- you did back up your database didn't you?
|
||||
6. Run `script/server` inside your Tracks 1.5 directory to [start up Tracks 1.5][startserver_upgrade].
|
||||
6. Run `script/server` inside your Tracks 1.6 directory to [start up Tracks 1.6][startserver_upgrade].
|
||||
7. Once you are happy that everything is working well, [delete your old Tracks directory][cleanup_upgrade].
|
||||
|
||||
### Backing up [backup_upgrade] ###
|
||||
|
|
@ -142,11 +155,11 @@ It's very important that you **back up your database** before you start the upgr
|
|||
|
||||
`mysqldump –-user [user name] –-password=[password] [database name] > [dump file]`
|
||||
|
||||
Rename your old Tracks installation (e.g. to 'tracks-old') so that you can install Tracks 1.5 along side it.
|
||||
Rename your old Tracks installation (e.g. to 'tracks-old') so that you can install Tracks 1.6 along side it.
|
||||
|
||||
### Install Tracks 1.5 [install_upgrade] ###
|
||||
### Install Tracks 1.6 [install_upgrade] ###
|
||||
|
||||
There are two methods of downloading Tracks 1.5:
|
||||
There are two methods of downloading Tracks 1.6:
|
||||
|
||||
1. (Recommended for most people) Download the [zipped package](http://www.rousette.org.uk/projects/files/tracks-current.zip), and unzip in your preferred location (e.g. `~/Sites` for Mac OS X users).
|
||||
2. Download using Subversion:
|
||||
|
|
@ -162,14 +175,14 @@ There are two methods of downloading Tracks 1.5:
|
|||
There are a few files you need to copy over from your old installation. If you copy them over rather than moving them, you can still run your old version of Tracks if anything goes awry with the installation process.
|
||||
|
||||
1. Copy `/config/database.yml` from your old Tracks directory to the same location in the new one. Double check that the information there is still correct.
|
||||
2. Duplicate `/config/environment.rb.tmpl` in the Tracks 1.5 directory, and rename the file to `environment.rb`. Open the file and alter the line `SALT = "change-me"` so that it matches what you had in this file in your old installation. You may also want to change the time zone setting as appropriate for your location (`ENV['TZ'] = 'US/Eastern'`). If you have made any other customisations to `environment.rb` in the past, copy those over, but the contents of the file have changed quite a lot since 1.043, so check it carefully.
|
||||
2. Duplicate `/config/environment.rb.tmpl` in the Tracks 1.6 directory, and rename the file to `environment.rb`. Open the file and alter the line `SALT = "change-me"` so that it matches what you had in this file in your old installation. You may also want to change the time zone setting as appropriate for your location (`ENV['TZ'] = 'US/Eastern'`). If you have made any other customisations to `environment.rb` in the past, copy those over, but the contents of the file have changed quite a lot since 1.043, so check it carefully.
|
||||
3. Copy your `/log` directory over from your old installation to the root of the new one, or just rename `/log.tmpl` to `log` to start afresh.
|
||||
4. If you are using SQLite3, copy your database from `/db` in your old Tracks directory to the same location in the new one.
|
||||
5. If you are using Windows, you may need to check the 'shebang' lines (`#!/usr/bin/env ruby`)[^env] of the `/public/dispatch.*` files and all the files in the `/script` directory. They are set to `#!/usr/bin/env ruby` by default. Check the format of those lines in your old installation, and change the new ones as necessary.
|
||||
|
||||
### Update your old database to the new format [rake_upgrade] ###
|
||||
|
||||
In a terminal, change directories so that you are inside the Tracks 1.5 directory. Then issue the command to update your Tracks 1.043 database to the format required for Tracks 1.5:
|
||||
In a terminal, change directories so that you are inside the Tracks 1.6 directory. Then issue the command to update your Tracks 1.043 database to the format required for Tracks 1.6:
|
||||
|
||||
`rake db:migrate RAILS_ENV=production`
|
||||
|
||||
|
|
@ -177,7 +190,7 @@ Watch the output carefully for errors, but it should report at the end of the pr
|
|||
|
||||
### Start the server [startserver_upgrade] ###
|
||||
|
||||
If you're still in the Tracks 1.5 root directory in a terminal, enter the following command to start up Tracks in production mode:
|
||||
If you're still in the Tracks 1.6 root directory in a terminal, enter the following command to start up Tracks in production mode:
|
||||
|
||||
`script/server -e production`
|
||||
|
||||
|
|
@ -186,7 +199,7 @@ Visit the URL indicated by the output (e.g. `** Mongrel available at 0.0.0.0:300
|
|||
|
||||
### Clean up your old installation [cleanup_upgrade] ###
|
||||
|
||||
Once you're certain that your new Tracks 1.5 installation is working perfectly, you can delete your old Tracks directory.
|
||||
Once you're certain that your new Tracks 1.6 installation is working perfectly, you can delete your old Tracks directory.
|
||||
|
||||
[^env]: The `env` binary helps to locate other binaries, regardless of their location. If you don't have `env` installed, you'll need to change this line to point to the location of your Ruby binary.
|
||||
|
||||
|
|
@ -205,4 +218,4 @@ The best option for versions prior to 1.043 is to follow the instructions below
|
|||
9. Run the command `rake db_schema_import` inside the Tracks directory. This should import the upgraded schema for 1.043 into your new database.
|
||||
10. Run the command `rake load_exported_fixtures` which will import the contents of your old database from the fixtures files in `db/exported_fixtures`.
|
||||
11. If you are using Windows, you may need to check the 'shebang' lines (`#!/usr/bin/env ruby`)[^env] of the `/public/dispatch.*` files and all the files in the `/script` directory. They are set to `#!/usr/bin/env ruby` by default. Check the format of those lines in your old installation, and change the new ones as necessary.
|
||||
12. Try starting up the server with `script/server` to make sure that all your data has migrated successfully. If all is well, follow the instructions above to [upgrade from version 1.043][upgrading_1043] to Tracks 1.5. If you need to access Tracks from a mobile/cellular phone browser, visit `http://yourdomain.com/mobile/`. This mobile version is a special, lightweight version of Tracks, designed to use on a mobile browser.
|
||||
12. Try starting up the server with `script/server` to make sure that all your data has migrated successfully. If all is well, follow the instructions above to [upgrade from version 1.043][upgrading_1043] to Tracks 1.6. If you need to access Tracks from a mobile/cellular phone browser, visit `http://yourdomain.com/mobile/`. This mobile version is a special, lightweight version of Tracks, designed to use on a mobile browser.
|
||||
Binary file not shown.
|
|
@ -112,11 +112,11 @@
|
|||
\usepackage{booktabs} % Better tables
|
||||
\usepackage{tabulary} % Support longer table cells
|
||||
\usepackage[utf8]{inputenc} % For UTF-8 support
|
||||
% \usepackage{xcolor} % Allow for color (annotations)
|
||||
%\usepackage{xcolor} % Allow for color (annotations)
|
||||
|
||||
%\geometry{landscape} % Activate for rotated page geometry
|
||||
|
||||
% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty
|
||||
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty
|
||||
% line rather than an indent
|
||||
|
||||
|
||||
|
|
@ -133,11 +133,11 @@
|
|||
\date{2008-04-07}
|
||||
\def\format{complete}
|
||||
\def\latexxslt{memoir-twosided-manual.xslt}
|
||||
\def\revision{Revision: \$Id: manual.markdown 811 2008-04-07 20:21:00Z bsag \$}
|
||||
\def\mytitle{Tracks 1.5 Manual}
|
||||
\def\version{1.5}
|
||||
\usepackage{xmpincl}
|
||||
\includexmp{CCAttributionShareAlike}
|
||||
\def\revision{Revision: \$Id: manual.markdown 864 2008-06-03 17:01:00Z bsag \$}
|
||||
\def\mytitle{Tracks 1.6 Manual}
|
||||
\def\version{1.6}
|
||||
%%\usepackage{xmpincl}
|
||||
%%\includexmp{CCAttributionShareAlike}
|
||||
|
||||
|
||||
%
|
||||
|
|
@ -254,16 +254,19 @@
|
|||
\setlength{\parskip}{\baselineskip/2}
|
||||
|
||||
\mainmatter
|
||||
\chapter{Installing Tracks 1.5}
|
||||
\label{installingtracks1.5}
|
||||
\chapter{Installing Tracks 1.6}
|
||||
\label{installingtracks1.6}
|
||||
|
||||
\section{Introduction}
|
||||
\label{introduction}
|
||||
|
||||
Tracks 1.5 has been thoroughly beta tested by a large number of people, and should be fully stable for everyday use. However, once set up, Tracks will contain the majority of your plans for your work and personal life, so it's only sensible to make sure that you have frequent, reliable backups of your data. Full changenotes on the release can be found in \texttt{doc/CHANGELOG}. Full API documentation can be found at \texttt{doc/app/index.html}, once you have run \texttt{rake appdoc}
|
||||
\textbf{An important note for version 1.6: OpenID support is broken in this release. The fix isn't trivial because of changes to the \texttt{ruby-openid} gem, so we wanted to get this version out now and fix OpenID for the next release. If you depend on OpenID integration, we recommend waiting until the next release.}
|
||||
|
||||
|
||||
There are two methods of downloading Tracks 1.5 \textbf{(N.B. These links will not work until Tracks 1.5 final is released)}):
|
||||
Tracks 1.6 has been thoroughly beta tested by a large number of people, and should be fully stable for everyday use. However, once set up, Tracks will contain the majority of your plans for your work and personal life, so it's only sensible to make sure that you have frequent, reliable backups of your data. Full changenotes on the release can be found in \texttt{doc/CHANGELOG}. Full API documentation can be found at \texttt{doc/app/index.html}, once you have run \texttt{rake appdoc}
|
||||
|
||||
|
||||
There are two methods of downloading Tracks 1.6:
|
||||
|
||||
|
||||
\begin{enumerate}
|
||||
|
|
@ -311,7 +314,7 @@ If you'd like an easy way to access Tracks from any internet-connected computer,
|
|||
|
||||
\item Tracks itself
|
||||
|
||||
\item Rails 1.2.5 (installed in the \texttt{/vendor/rails} directory, so you do not need to install Rails yourself)
|
||||
\item Rails 2.0.2 (installed in the \texttt{/vendor/rails} directory, so you do not need to install Rails yourself)
|
||||
|
||||
\item An empty SQLite3 database, set up with the correct database schema
|
||||
\end{enumerate}
|
||||
|
|
@ -332,13 +335,13 @@ If you don't want to (or can't) use one of the all in one installations, you'll
|
|||
\item \textbf{Database}. The easiest option is to use SQLite3, as the database is included in the package. All you need then is the \texttt{sqlite3-ruby} gem, as described in step 2, and the SQLite3 libraries and binary (see \href{http://sqlite.org/download.html}{sqlite.org} for downloads and installation instructions). If you want to use MySQL, download and install a package for your platform from \href{http://dev.mysql.com/downloads/mysql/5.0.html}{MySQL.com}. The basic steps for Postgresql should be similar to those for MySQL, but they will not be discussed further here.
|
||||
\end{enumerate}
|
||||
|
||||
If you are using Unix, you might find \href{http://www.cooldown.com.ar/2006/12/16/install-tracks-on-ubuntu-or-debian/}{this guide} by c00i90wn helpful. It was written for Tracks 1.043, but it should work for Tracks 1.5.
|
||||
If you are using Unix, you might find \href{http://www.cooldown.com.ar/2006/12/16/install-tracks-on-ubuntu-or-debian/}{this guide} by c00i90wn helpful. It was written for Tracks 1.043, but it should work for Tracks 1.6.
|
||||
|
||||
|
||||
\section{Installation}
|
||||
\label{installation}
|
||||
|
||||
This description is intended for people installing Tracks from scratch. If you would like to upgrade an existing installation, please see Upgrading to Tracks 1.5 (\autoref{upgrading}).
|
||||
This description is intended for people installing Tracks from scratch. If you would like to upgrade an existing installation, please see Upgrading to Tracks 1.6 (\autoref{upgrading}).
|
||||
|
||||
|
||||
\begin{enumerate}
|
||||
|
|
@ -359,7 +362,7 @@ This description is intended for people installing Tracks from scratch. If you w
|
|||
|
||||
\item Configure some variables (\autoref{config_install})
|
||||
|
||||
\item Populate the database with the Tracks 1.5 schema (\autoref{rake_install})
|
||||
\item Populate the database with the Tracks 1.6 schema (\autoref{rake_install})
|
||||
|
||||
\item Start the server (\autoref{startserver_install})
|
||||
|
||||
|
|
@ -385,7 +388,7 @@ Before you go any further, you need to decide which database you will use. See t
|
|||
|
||||
\item \textbf{SQLite3}. All you need to do is make sure that you point Tracks to the included SQLite3 database in \texttt{/db} in the next step, Configure variables (\autoref{config_install}).
|
||||
|
||||
\item \textbf{MySQL}. Once you have MySQL installed, you need to create a database to use with Tracks 1.5. Go into a terminal and issue the following commands:
|
||||
\item \textbf{MySQL}. Once you have MySQL installed, you need to create a database to use with Tracks 1.6. Go into a terminal and issue the following commands:
|
||||
\end{enumerate}
|
||||
|
||||
\begin{adjustwidth}{2.5em}{2.5em}
|
||||
|
|
@ -407,7 +410,7 @@ Before you go any further, you need to decide which database you will use. See t
|
|||
\begin{enumerate}
|
||||
|
||||
|
||||
\item If you downloaded Tracks 1.5 via Subversion, you need to duplicate the files \texttt{database.yml.tmpl} and \texttt{environment.yml.tmpl} and remove the \texttt{*.tmpl} extension from the duplicates. Similarly, duplicate \texttt{/log.tmpl} and remove the \texttt{*.tmpl} extension, then edit the files as described in steps 2 and 3.
|
||||
\item If you downloaded Tracks 1.6 via Subversion, you need to duplicate the files \texttt{database.yml.tmpl} and \texttt{environment.yml.tmpl} and remove the \texttt{*.tmpl} extension from the duplicates. Similarly, duplicate \texttt{/log.tmpl} and remove the \texttt{*.tmpl} extension, then edit the files as described in steps 2 and 3.
|
||||
|
||||
\item Open the file \texttt{/config/database.yml} and edit the \texttt{production:} section with the details of your database. If you are using MySQL the \texttt{adapter:} line should read \texttt{adapter: mysql}, \texttt{host: localhost} (in the majority of cases), and your username and password should match those you assigned when you created the database. If you are using SQLite3, you should have only two lines under the production section: \texttt{adapter: sqlite3} and \texttt{database: db/tracks-15-blank.db}. If you downloaded the zipped file, the database.yml file is already configured to use the provided SQLite3 file.
|
||||
|
||||
|
|
@ -416,22 +419,22 @@ Before you go any further, you need to decide which database you will use. See t
|
|||
\item If you are using Windows, you may need to check the `shebang' lines (\texttt{\#!/usr/bin/env ruby}) of the \texttt{/public/dispatch.*} files and all the files in the \texttt{/script} directory. They are set to \texttt{\#!/usr/bin/env ruby} by default. This should work for all *nix based setups (Linux or Mac OS X), but Windows users will probably have to change it to something like \texttt{\#c:/ruby/bin/ruby} to point to the Ruby binary on your system.
|
||||
\end{enumerate}
|
||||
|
||||
\subsection{Populate your database with the Tracks 1.5 schema}
|
||||
\subsection{Populate your database with the Tracks 1.6 schema}
|
||||
\label{rake_install}
|
||||
|
||||
Open a terminal and change into the root of your Tracks 1.5 directory. Enter the following command:
|
||||
Open a terminal and change into the root of your Tracks 1.6 directory. Enter the following command:
|
||||
|
||||
|
||||
\texttt{rake db:migrate RAILS\_ENV=production}
|
||||
|
||||
|
||||
This will update your database with the required schema for Tracks 1.5. If you are using SQLite3, it is not strictly necessary, because the SQLite3 database included with Tracks already has the schema included in it, but it should not do any harm to run the command (nothing will happen if it is up to date).
|
||||
This will update your database with the required schema for Tracks 1.6. If you are using SQLite3, it is not strictly necessary, because the SQLite3 database included with Tracks already has the schema included in it, but it should not do any harm to run the command (nothing will happen if it is up to date).
|
||||
|
||||
|
||||
\subsection{Start the server}
|
||||
\label{startserver_install}
|
||||
|
||||
While still in the Terminal inside the Tracks 1.5 root directory, issue the following command:
|
||||
While still in the Terminal inside the Tracks 1.6 root directory, issue the following command:
|
||||
|
||||
|
||||
\texttt{script/server -e production}
|
||||
|
|
@ -452,9 +455,29 @@ Visit \texttt{http://0.0.0.0:3000/signup} in a browser (or whatever URL and port
|
|||
Once logged in, add some Contexts and Projects, and then go ahead and add your actions. You might also want to visit the Preferences page to edit various settings to your liking. Have fun!
|
||||
|
||||
|
||||
\chapter{Upgrading to Tracks 1.5}
|
||||
\chapter{Upgrading to Tracks 1.6}
|
||||
\label{upgrading}
|
||||
|
||||
\section{Upgrading from Tracks 1.5}
|
||||
\label{upgrading_1.5}
|
||||
|
||||
There are no changes to the database between 1.5 and 1.6, but you will need to upgrade your \texttt{config/environment.rb} with the new content from \texttt{config/environment.rb.tmpl} included in 1.6, as the format of this file has changed a great deal between 1.5 and 1.6.
|
||||
|
||||
|
||||
\begin{enumerate}
|
||||
|
||||
|
||||
\item Back up (\autoref{backup_upgrade}) your existing database and installation of Tracks
|
||||
|
||||
\item Install Tracks 1.6 (\autoref{install_upgrade}) in a new directory
|
||||
|
||||
\item Copy over (\autoref{config_upgrade}) a few configuration files from your Tracks 1.043 directory. If using SQLite3, copy the old database into the new Tracks 1.6 directory
|
||||
|
||||
\item Run \texttt{script/server} inside your Tracks 1.6 directory to start up Tracks 1.6 (\autoref{startserver_upgrade}).
|
||||
|
||||
\item Once you are happy that everything is working well, delete your old Tracks directory (\autoref{cleanup_upgrade}).
|
||||
\end{enumerate}
|
||||
|
||||
\section{Upgrading from Tracks 1.043}
|
||||
\label{upgrading_1043}
|
||||
|
||||
|
|
@ -466,13 +489,13 @@ This should be a relatively straightforward, and involves the following main ste
|
|||
|
||||
\item Back up (\autoref{backup_upgrade}) your existing database and installation of Tracks
|
||||
|
||||
\item Install Tracks 1.5 (\autoref{install_upgrade}) in a new directory
|
||||
\item Install Tracks 1.6 (\autoref{install_upgrade}) in a new directory
|
||||
|
||||
\item Copy over (\autoref{config_upgrade}) a few configuration files from your Tracks 1.043 directory. If using SQLite3, copy the old database into the new Tracks 1.5 directory
|
||||
\item Copy over (\autoref{config_upgrade}) a few configuration files from your Tracks 1.043 directory. If using SQLite3, copy the old database into the new Tracks 1.6 directory
|
||||
|
||||
\item Run \texttt{rake db:migrate RAILS\_ENV=production} to update your old database (\autoref{rake_upgrade}) to the new schema -- you did back up your database didn't you?
|
||||
|
||||
\item Run \texttt{script/server} inside your Tracks 1.5 directory to start up Tracks 1.5 (\autoref{startserver_upgrade}).
|
||||
\item Run \texttt{script/server} inside your Tracks 1.6 directory to start up Tracks 1.6 (\autoref{startserver_upgrade}).
|
||||
|
||||
\item Once you are happy that everything is working well, delete your old Tracks directory (\autoref{cleanup_upgrade}).
|
||||
\end{enumerate}
|
||||
|
|
@ -486,13 +509,13 @@ It's very important that you \textbf{back up your database} before you start the
|
|||
\texttt{mysqldump ---user [user name] ---password=[password] [database name] $>$ [dump file]}
|
||||
|
||||
|
||||
Rename your old Tracks installation (e.g.\ to `tracks-old') so that you can install Tracks 1.5 along side it.
|
||||
Rename your old Tracks installation (e.g.\ to `tracks-old') so that you can install Tracks 1.6 along side it.
|
||||
|
||||
|
||||
\subsection{Install Tracks 1.5}
|
||||
\subsection{Install Tracks 1.6}
|
||||
\label{install_upgrade}
|
||||
|
||||
There are two methods of downloading Tracks 1.5:
|
||||
There are two methods of downloading Tracks 1.6:
|
||||
|
||||
|
||||
\begin{enumerate}
|
||||
|
|
@ -525,7 +548,7 @@ There are a few files you need to copy over from your old installation. If you c
|
|||
|
||||
\item Copy \texttt{/config/database.yml} from your old Tracks directory to the same location in the new one. Double check that the information there is still correct.
|
||||
|
||||
\item Duplicate \texttt{/config/environment.rb.tmpl} in the Tracks 1.5 directory, and rename the file to \texttt{environment.rb}. Open the file and alter the line \texttt{SALT = "change-me"} so that it matches what you had in this file in your old installation. You may also want to change the time zone setting as appropriate for your location (\texttt{ENV['TZ'] = 'US/Eastern'}). If you have made any other customisations to \texttt{environment.rb} in the past, copy those over, but the contents of the file have changed quite a lot since 1.043, so check it carefully.
|
||||
\item Duplicate \texttt{/config/environment.rb.tmpl} in the Tracks 1.6 directory, and rename the file to \texttt{environment.rb}. Open the file and alter the line \texttt{SALT = "change-me"} so that it matches what you had in this file in your old installation. You may also want to change the time zone setting as appropriate for your location (\texttt{ENV['TZ'] = 'US/Eastern'}). If you have made any other customisations to \texttt{environment.rb} in the past, copy those over, but the contents of the file have changed quite a lot since 1.043, so check it carefully.
|
||||
|
||||
\item Copy your \texttt{/log} directory over from your old installation to the root of the new one, or just rename \texttt{/log.tmpl} to \texttt{log} to start afresh.
|
||||
|
||||
|
|
@ -537,7 +560,7 @@ There are a few files you need to copy over from your old installation. If you c
|
|||
\subsection{Update your old database to the new format}
|
||||
\label{rake_upgrade}
|
||||
|
||||
In a terminal, change directories so that you are inside the Tracks 1.5 directory. Then issue the command to update your Tracks 1.043 database to the format required for Tracks 1.5:
|
||||
In a terminal, change directories so that you are inside the Tracks 1.6 directory. Then issue the command to update your Tracks 1.043 database to the format required for Tracks 1.6:
|
||||
|
||||
|
||||
\texttt{rake db:migrate RAILS\_ENV=production}
|
||||
|
|
@ -549,7 +572,7 @@ Watch the output carefully for errors, but it should report at the end of the pr
|
|||
\subsection{Start the server}
|
||||
\label{startserver_upgrade}
|
||||
|
||||
If you're still in the Tracks 1.5 root directory in a terminal, enter the following command to start up Tracks in production mode:
|
||||
If you're still in the Tracks 1.6 root directory in a terminal, enter the following command to start up Tracks in production mode:
|
||||
|
||||
|
||||
\texttt{script/server -e production}
|
||||
|
|
@ -562,7 +585,7 @@ Visit the URL indicated by the output (e.g.\ \texttt{** Mongrel available at 0.0
|
|||
\subsection{Clean up your old installation}
|
||||
\label{cleanup_upgrade}
|
||||
|
||||
Once you're certain that your new Tracks 1.5 installation is working perfectly, you can delete your old Tracks directory.
|
||||
Once you're certain that your new Tracks 1.6 installation is working perfectly, you can delete your old Tracks directory.
|
||||
|
||||
|
||||
\section{Upgrading from versions prior to 1.043}
|
||||
|
|
@ -596,7 +619,7 @@ The best option for versions prior to 1.043 is to follow the instructions below
|
|||
|
||||
\item If you are using Windows, you may need to check the `shebang' lines (\texttt{\#!/usr/bin/env ruby})\footnote{The \texttt{env} binary helps to locate other binaries, regardless of their location. If you don't have \texttt{env} installed, you'll need to change this line to point to the location of your Ruby binary.The \texttt{env} binary helps to locate other binaries, regardless of their location. If you don't have \texttt{env} installed, you'll need to change this line to point to the location of your Ruby binary.} of the \texttt{/public/dispatch.*} files and all the files in the \texttt{/script} directory. They are set to \texttt{\#!/usr/bin/env ruby} by default. Check the format of those lines in your old installation, and change the new ones as necessary.
|
||||
|
||||
\item Try starting up the server with \texttt{script/server} to make sure that all your data has migrated successfully. If all is well, follow the instructions above to upgrade from version 1.043 (\autoref{upgrading_1043}) to Tracks 1.5. If you need to access Tracks from a mobile/cellular phone browser, visit \texttt{http://yourdomain.com/mobile/}. This mobile version is a special, lightweight version of Tracks, designed to use on a mobile browser.
|
||||
\item Try starting up the server with \texttt{script/server} to make sure that all your data has migrated successfully. If all is well, follow the instructions above to upgrade from version 1.043 (\autoref{upgrading_1043}) to Tracks 1.6. If you need to access Tracks from a mobile/cellular phone browser, visit \texttt{http://yourdomain.com/mobile/}. This mobile version is a special, lightweight version of Tracks, designed to use on a mobile browser.
|
||||
\end{enumerate}
|
||||
|
||||
%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue