-
Actions build instructions
last modified August 17, 2007 by nicholasbs
Get workingenv.py from svn and create an 'actions' workingenv:
svn co http://svn.colorstudy.com/home/ianb/workingenv/workingenv.py
./workingenv.py actions
cd actions; . bin/activate
Install Pylons and the appropriate libraries:
easy_install pylons==0.9.5
easy_install mysql-python
easy_install sqlobject
easy_install simplejson
easy_install parsedatetime
Note: Because Actions uses Myghty, if you use a version of Pylons newer than 0.9.5, you must change the default template engine from Mako to Myghty.
Checkout pyfacebook from svn:
svn co http://pyfacebook.googlecode.com/svn/trunk/ pyfacebook
cd pyfacebook
python setup.py install
Checkout the trunk of the latest version of Actions:
svn co https://svn.openplans.org/svn/actions/trunk actions_trunk
Checkout topp.utils into actions/lib
cd actions_trunk/actions/lib
svn co https://svn.openplans.org/svn/topp.utils/trunk/topp/utils topp_utils
Create a keys.py file in actions/lib with API and secret keys (FACEBOOK_API_KEY = '' and FACEBOOK_SECRET_KEY = ''). The contents of this file should look like this:
FACEBOOK_API_KEY = 'your api key here'
FACEBOOK_SECRET_KEY = 'your secret key here'
Configure the production.ini file in actions_trunk (set port, sqlobject.dburi, make sure 'set debug=false'). Make sure to point sqlobject.dburi to the MySQL database you want to use with Actions (I usually call this database 'actionsdb').
Edit actions_trunk/actions/lib/app_globals.py and set the appropriate URLs (e.g., self.callback_url, self.app_feedback_url, self.app_app_url, self.root_url).
Run setup.py install:
python setup.py install
Start paster:
paster serve production.ini
You will also want to have a cron job run the following command on a daily basis (this will keep the content in the boxes on all Actions users' profiles up to date):
update_fbml.sh
You should probably put this file in the bin directory of the actions workingenv.
mv update_fbml.sh ../bin
If you haven't already, you must also enter the proper settings (e.g., callback URL) on the Facebook app settings page.