robertbrook / findyourmp

Find Your MP

This URL has Read+Write access

lizconlan (author)
Mon Oct 26 07:38:48 -0700 2009
commit  7e27d732b584a4da23ea5825a10ddbd90c7b72e1
tree    4de2c52a589a7de1d8c2bceb04ab9a9520f53eb4
parent  f0a4633ebed209fe257c1b8183eebdc095427bf3
name age message
file .gitignore Wed Jun 24 02:20:50 -0700 2009 updated ignore file [robmckinnon]
file .gitmodules Mon Jun 15 06:32:06 -0700 2009 added xss_terminate plugin [robmckinnon]
file Capfile Tue Apr 14 14:33:33 -0700 2009 exposed passenger's reporting tools via cap [lizconlan]
file README Thu Jun 25 07:42:50 -0700 2009 slightly better version of README file [lizconlan]
file Rakefile Tue Aug 12 08:25:42 -0700 2008 generated project using edge rails [robmckinnon]
directory app/ Loading commit data...
file config.ru Tue Mar 24 09:54:03 -0700 2009 updated configs, scripts and javascripts for ra... [robmckinnon]
directory config/ Mon Oct 26 04:28:38 -0700 2009 when creating postcode diff, move old diff file... [robmckinnon]
file cucumber.yml.example Fri Nov 28 09:16:06 -0800 2008 moved cucumber.yml to cucumber.yml.example [robmckinnon]
directory db/ Fri Aug 21 03:49:01 -0700 2009 added Manual (non-ONS) Postcode functionality [lizconlan]
directory features/
directory lib/
directory public/
directory script/ Fri Mar 20 04:24:08 -0700 2009 now using cucumber v0.2.0, rspec+rspec_rails 1.... [robmckinnon]
directory spec/
directory stories/ Tue Aug 12 08:26:22 -0700 2008 imported edge rspec, rspec_on_rails, haml and r... [robmckinnon]
directory vendor/ Mon Aug 03 11:59:00 -0700 2009 email header names in more compatible format [lizconlan]
README
sudo mysqladmin create findyourmp_test
sudo mysqladmin create findyourmp_development
sudo mysqladmin create findyourmp_production

git pull

git submodule init

git submodule update

mv config/database.yml.example config/database.yml

sudo gem install unicode

rake db:migrate:reset

# the steps below requires data which is not in git repository
# files need to end up in the /data directory

rake fymp:constituencies
rake fymp:members

rake fymp:parse
rake fymp:populate

rake fymp:load_postcode_districts

rake friendly_id:make_slugs MODEL=Constituency

# To get the emergency server shutdown to work, you need to run the following...
#
# sudo visudo
#
# ...and add in the next 2 lines, substituting [SITE_CONTEXT_USER] with the actual user or group the site runs as
#
# Cmnd_Alias     APACHE = /etc/init.d/apache2 start, /etc/init.d/apache2 stop, /etc/init.d/apache2 restart, 
/etc/init.d/apache2 reload
# [SITE_CONTEXT_USER] ALL=NOPASSWD: APACHE