public
Description: Find Your MP
Homepage:
Clone URL: git://github.com/robertbrook/findyourmp.git
name age message
file .gitignore Wed Jun 24 02:20:50 -0700 2009 updated ignore file [robmckinnon]
file .gitmodules Loading commit data...
file Capfile
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/ Mon Oct 26 07:15:08 -0700 2009 fixing bug with manual postcode logic [lizconlan]
file config.ru Tue Mar 24 09:54:03 -0700 2009 updated configs, scripts and javascripts for ra... [robmckinnon]
directory config/
file cucumber.yml.example Fri Nov 28 09:16:06 -0800 2008 moved cucumber.yml to cucumber.yml.example [robmckinnon]
directory db/
directory features/ Mon Oct 26 07:38:48 -0700 2009 fixed failing features [lizconlan]
directory lib/ Mon Oct 26 05:37:44 -0700 2009 (re-)adding Blacklisted and Manual postcode log... [lizconlan]
directory public/
directory script/
directory spec/ Mon Oct 26 07:15:08 -0700 2009 fixing bug with manual postcode logic [lizconlan]
directory stories/
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