Tuesday, January 13, 2015

Webfaction Instructions

  1. Log into webfaction and choose application under the domain/website tab
  2. Choose mod_wsgi for category, use latest python for app type, and name obviously(we are calling it ATIC). Then hit save.
  3. Go into websites tab and make sure the domain and apps are set
  4. Log into webfaction using the command line(ssh atic@ip)
  5. Go from the home directory to "webapps" then into "atic"
  6. 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
  7. Put adapter.wsgi into main directory and add the line
    "WSGIScriptAlias / /home/atic/webapps/atic/adapter.wsgi"
    in apache2/conf/httpd.conf
  8. Then move attic.py, static, and templates into lib/python3.4 although Matt said this was not good practice
You can also look at this post for reference as well


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


1 comment:

  1. 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