PDA

View Full Version : Tracks Info


Lecter
07-10-2007, 05:55 PM
http://www.rousette.org.uk/projects/

http://www.rousette.org.uk/projects/forums/

http://www.rousette.org.uk/svn/tracks-repos/trunk/tracks/

Lecter
07-10-2007, 05:59 PM
<ol>
<li>Create a subdomain on the Dreamhost panel and be sure to enable FastCGI support and be sure to set<strong>the web directory</strong> to <em>/home/username/subdomain.domain/<strong>public</strong>/</em>. If your webdirectory does not point to the public folder, your Ruby on Rails application won&rsquo;t be accessible from the root of your domain.</li>
<li>Create a MySQL database for your Tracks installation using the Dreamhost panel.</li>
<li>Download <a href="http://www.rousette.org.uk/projects/" target="_blank">Tracks</a> and unzip it to a local folder on your harddrive.</li>
<li>On your local harddrive, delete the existing file config/database.yml. Rename config/database.yml.tmpl to config/database.yml and edit the file so that the database settings of development and production match the settings of your newly created database(s).<br /><em>Note: be sure to use your full hostname when filling in the host setting, localhost just won&rsquo;t do it!</em></li>
<li>Edit the file config/environment.rb and change the following values:</li>
<ol>
<li><strong>SALT</strong>: change this value to anything you like (but not too easy). This value will be used to scramble your password(s).</li>
<li><strong>ENV[’TZ’]</strong>:<strong> </strong>Altough this is not really necessary, it may be handy to change the timezone of Tracks to your timezone. Please note that you will have to uncomment this as well to be effective.</li>
</ol>
<li>Upload the contents of the extracted folder to the root folder of the domain you created in step 1.</li>
<li>Modify the public/.htaccess file on your web space and change all the occurrences of dispatch.cgi to dispatch.fcgi. Currently, only one occurence needs to be changed. This change results in better performance of your Tracks installation.<br /><em>Note: This file is usually hidden. Most FTP clients will have an option to make hidden files visible.</em></li>
<li>To protect the file config/database.yml from unauthorized access, set the file permissions to 600. To make the Tracks executable, change the folder permissions of public/ to 755 and file permissions of the public/dispatch* files to 755.<br />You can do this easily using your FTP client (<a href="http://sourceforge.net/projects/filezilla" target="_blank">FileZilla</a> comes highly recommended).<br />You can also establish this on the command line by entering the following commands:</li>
<ol>
<li><font face="Courier New">chmod 600 config/database.yml</font></li>
<li><font face="Courier New">chmod 755 public/</font></li>
<li><font face="Courier New">chmod 755 public/dispatch*</font></li>
</ol>
<li>Enter the command <font face="Courier New">rake migrate</font> on the command line in the root folder of your domain. This will initialize your Tracks installation (create database tables and so on).</li>
<li>Point your favourite browser to <a href="http://subdomain.domain/signup">http://subdomain.domain/signup</a>&nbsp;and create an administrator account and delete the public/index.html file afterwards.</li>
</ol>Original article (http://www.untillately.eu/2007/05/22/installing-tracks-on-dreamhost-updated-version/)

Lecter
07-11-2007, 10:49 PM
Remove the footer, a few nav elements and adjust date display

app > views > layout > standard.rhtml

Remove:
<div id="footer">
<p>Send feedback: <a href="http://dev.rousette.org.uk/report/6">Trac</a> | <a href="http://www.rousette.org.uk/projects/wiki/">Wiki</a> | <a href="mailto:butshesagirl@rousette.org.uk?subject=Tracks feedback">Email</a> | <a href="http://www.rousette.org.uk/projects/">Website</a></p>
</div>
Remove:
<% if @user.is_admin? -%>
<li><%= link_to "Add users", :controller => "login", :action => "signup" %>
<% end -%>
<li><%= link_to "Logout (#{@user.login}) »", :controller => "login", :action=>"logout"%></li>

Change:
Preferences
To:
Prefs
Remove:
<% if @count %>
<span id="badge_count" class="badge"><%= @count %></span>
<% end %>
<%= Time.now.strftime("%A, %d %B %Y") %>
Adjust the nav bar size

app > public > stylesheets > standard.css

Change:
#navlist {
margin: 0;
padding: 0 0 20px 10px;
border-bottom: 1px solid #000;
}
To:
#navlist {
font-size: 1.9em;
margin: 0;
padding: 0 0 20px 10px;
border-bottom: 1px solid #000;
}