- Log into webfaction and choose application under the domain/website tab
- Choose mod_wsgi for category, use latest python for app type, and name obviously(we are calling it ATIC). Then hit save.
- Go into websites tab and make sure the domain and apps are set
- Log into webfaction using the command line(ssh atic@ip)
- Go from the home directory to "webapps" then into "atic"
- Then make a directory called lib/python3.4 and install bottle in that directory using
$ export PYTHONPATH=$PWD/lib/python3.4
and
$ easy_install-3.4 -s $PWD/bin -d $PWD/lib/python3.4 bottle - Put adapter.wsgi into main directory and add the line
"WSGIScriptAlias / /home/atic/webapps/atic/adapter.wsgi"
in apache2/conf/httpd.conf - Then move attic.py, static, and templates into lib/python3.4 although Matt said this was not good practice
Also, I didn't have a lot of time yesterday to blog but that was when you were helping Dylan and I with bottle. Alex also linked me his math_drill project for help.
https://github.com/ahirschberg/math_drill/blob/master/run.py#L160-L173
https://github.com/ahirschberg/math_drill/blob/master/template/students.tpl
I don't have time now, but these instructions are really important, and need to be tested. Once we are confident they work, I'd like to make a page for this "recipe" on the Open Book Project site.
ReplyDelete