public
Description: Find Your MP
Homepage:
Clone URL: git://github.com/robertbrook/findyourmp.git
lizconlan (author)
Mon Oct 26 07:38:48 -0700 2009
commit  7e27d732b584a4da23ea5825a10ddbd90c7b72e1
tree    4de2c52a589a7de1d8c2bceb04ab9a9520f53eb4
parent  f0a4633ebed209fe257c1b8183eebdc095427bf3
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