~guy.kloss/sloecode/guy_dev

« back to all changes in this revision

Viewing changes to HACKING

  • Committer: Thomi Richards
  • Date: 2011-05-18 23:20:04 UTC
  • mfrom: (99.1.1 legal)
  • Revision ID: thomir@gmail.com-20110518232004-xzj9nnig1da9gggm
Updated legal attributions (for Fugue icon set).

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
Web Application
25
25
---------------
26
26
 
 
27
To setup the site databse, do this:
 
28
 
 
29
$ paster setup-app development.ini
 
30
 
 
31
To run the site, do this:
 
32
 
 
33
$ paster serve [--reload] development.ini
 
34
 
 
35
The --reload argument will reload the website when you make a change to a local
 
36
source file. This can be very useful for development!
 
37
 
 
38
You should then be able to connect to the website by pointing your web browser
 
39
to http://localhost:5000/
 
40
 
 
41
 
27
42
sloecode is a typical pylons app. A brief tour of the system follows:
28
43
 
29
44
config/routing.py holds the routes map that maps from a URL to a controller
66
81
BZR Smart Server
67
82
----------------
68
83
 
 
84
 
 
85
To run the smartserver, you need to set a couple of environment variables:
 
86
 
 
87
 *  SLOECODE_CONFIG should point to the full path to the INI file
 
88
 *  PYTHONPATH needs to include the location to the sloecode python modules
 
89
 
69
90
The BZR smart server lives in sloecode/sshserver/. The smart server uses the
70
91
twisted network library, and the conch ssh server implementation. To run it,
71
92
type:
75
96
You will need to create an SSH key pair, and place it in /var/sloecode/keys.
76
97
The keys should be named 'sloecode_rsa' and 'sloecode_rsa.pub'. You will
77
98
also need to create the /var/sloecode/logs directory.
 
99
 
 
100