aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangie <angie>2008-07-10 15:25:00 +0000
committerangie <angie>2008-07-10 15:25:00 +0000
commit561a7266c44b9ccc6557c22bae1202fddfa121dd (patch)
tree5062ece8b4ce8d1539aa552c079c8eead3b693bc
parentf277df7e86a0c8ae01337a8dca1323b7bd88ae6c (diff)
install guide
-rwxr-xr-xINSTALL.txt71
-rw-r--r--config/packages3
-rw-r--r--public/stylesheets/main.css7
-rwxr-xr-xscript/rebuild-xapian-index2
4 files changed, 79 insertions, 4 deletions
diff --git a/INSTALL.txt b/INSTALL.txt
new file mode 100755
index 000000000..6521cc1d6
--- /dev/null
+++ b/INSTALL.txt
@@ -0,0 +1,71 @@
+ * Email: angie@mysociety.org; WWW: http://www.mysociety.org
+ *
+ * $Id: INSTALL.txt,v 1.1 2008-07-10 15:25:00 angie Exp $
+ *
+
+
+These instructions are based on getting the FOI site up and running on Ubuntu.
+It was last run using the Hardy Heron version of Ubuntu.
+
+Commands are intended to be run via the terminal or over ssh.
+
+Firstly, in terminal, navigate to the foi folder where this install guide lives.
+
+1. Install the packages that are listed in config/packages using apt-get eg:
+
+sudo apt-get install ruby1.8
+sudo apt-get install postgresql
+sudo apt-get install libpgsql-ruby1.8
+sudo apt-get install libgems-ruby1.8
+sudo apt-get install rake
+sudo apt-get install irb
+sudo apt-get install mongrel
+sudo apt-get install wv
+sudo apt-get install poppler-utils
+sudo apt-get install catdoc
+sudo apt-get install links
+sudo apt-get install lynx
+sudo apt-get install libxapian-ruby1.8
+sudo apt-get install gnuplot-nox
+sudo apt-get install ttf-bitstream-vera
+sudo apt-get install rubygems
+sudo apt-get install sharutils
+
+Now we need to set up the database config file to contain the name, username and password of your postgres database.
+
+2: copy database.yml-example to database.yml in foi/config
+
+3: edit it to point to your local postgresql database in the development section and create the databases
+
+NOTES:
+su to postgres as a user.
+psql to get into command tool
+\l to list databases
+create database foi encoding = 'SQL_ASCII';
+to change the password run
+alter user postgres with password 'newpw';
+to import the data:
+
+
+4: cd ../../mysociety
+
+5: ./bin/rails-post-deploy foi
+
+This will need execture privs so chmod 755 if necessary
+
+6. cd foi/
+
+7 run the following to create the DB.
+
+rake db:migrate
+
+8. Next we need to create the index for the search engine (Xapian) or we'll get problems:
+./script/rebuild-xapian-index
+
+9: run the following to get the server running (may need to chmod 755 again)
+./script/server --environment=development
+
+or if you want the server to be available on the network and not just on localhost tell it your ip address by running
+./script/server --binding=10.0.0.11 --environment=development
+
+Obviously change 10.0.0.11 to your own IP address
diff --git a/config/packages b/config/packages
index 6ba91736b..410a7f7be 100644
--- a/config/packages
+++ b/config/packages
@@ -1,4 +1,5 @@
ruby1.8
+postgresql
libpgsql-ruby1.8
libgems-ruby1.8
rake
@@ -12,3 +13,5 @@ lynx
libxapian-ruby1.8
gnuplot-nox
ttf-bitstream-vera
+rubygems
+sharutils \ No newline at end of file
diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css
index 8af3358b1..abf56c659 100644
--- a/public/stylesheets/main.css
+++ b/public/stylesheets/main.css
@@ -21,7 +21,7 @@ body
border-width: 0 0 3px 0;
border-style: solid;
height: 100px;
- background-image: url(../images/navimg/bnnr-temp-100pxa.jpg);
+ background-image: url(../images/navimg/bnnr-temp-100pxc.jpg);
background-repeat: no-repeat;
background-position: center top;
@@ -413,7 +413,6 @@ dd { margin: 0.6em 0 2em 4em; width: 30em; }
/* Waiting */
span.bottomline.icon_waiting_response,
- span.bottomline.icon_waiting_response_overdue,
span.bottomline.icon_waiting_classification,
span.bottomline.icon_waiting_clarification
{ background-image: url(../images/navimg/status-icons-wait.png);}
@@ -426,7 +425,9 @@ dd { margin: 0.6em 0 2em 4em; width: 30em; }
span.bottomline.icon_partially_successful
{ background-image: url(../images/navimg/status-icons-succeed.png);}
/* Alert */
- span.bottomline.icon_requires_admin { background-image: url(../images/navimg/status-icons-attn.png);}
+ span.bottomline.icon_requires_admin,
+ span.bottomline.icon_waiting_response_overdue
+ { background-image: url(../images/navimg/status-icons-attn.png);}
span.bottomline a
diff --git a/script/rebuild-xapian-index b/script/rebuild-xapian-index
index 11e4a46be..ed859ada4 100755
--- a/script/rebuild-xapian-index
+++ b/script/rebuild-xapian-index
@@ -1,6 +1,6 @@
#!/bin/bash
cd `dirname $0`
-rake --silent xapian:rebuild_index models="PublicBody User InfoRequestEvent"
+rake --silent xapian:rebuild_index models="PublicBody User InfoRequestEvent" --trace