Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 61 lines (44 sloc) 1.778 kB
d9007b6 @alexksikes First commit.
authored
1 1) Download the latest tar ball: http://github.com/alexksikes/mlss/tarball/master.
2
3 2) tar xvzf "the tar ball"
4
5 3) Download install webpy, follow instructions here: http://webpy.org/install.
6
c720137 @alexksikes Fixed schema.sql and better install instructions.
authored
7 4) Setup your database: mysql -p mlss < ./schema.sql. Note you first need to create a database called mlss.
8 If you want to try with sample data run: mysql -p mlss < ./data.sql
9
10 5) Go over your site settings ./config_example.py and rename this file ./config.py
11
12 6) Now you can test it: python ./application.py
13
14 7) Setup lighttpd for production use. Here is a part your config file:
d9007b6 @alexksikes First commit.
authored
15
16 ...
17
18 name = "mlss_admin"
19 script = "path to ./application.py"
20
21 server.document-root = "path to ./public/"
22
23 # make sure users can access the application forms but not the admin
24 $HTTP["url"] !~ "/(submit_application|submit_reference|css|img|js)/?" {
25 auth.require = ( "" =>
26 (
27 "method" => "digest",
28 "realm" => "Authorized users only",
29 "require" => "valid-user",
30 ))
31 }
32
33 url.rewrite += (
34 # Commented for development
35 #"^/img/(.*)$" => "/img/$1",
36 #"^/css/(.*)$" => "/css/$1",
37 #"^/js/(.*)$" => "/js/$1",
38
39 "^/resumes/(.*)$" => "/resumes/$1",
40 "^/(.*)$" => script + "/$1",
41 )
42
43 fastcgi.server += ( script =>
44 ((
45 "socket" => "/tmp/" + name + var.PID + ".socket",
46 "bin-path" => script,
47 "check-local" => "disable",
48 "max-procs" => 1,
49 "bin-environment" => (
50 "REAL_SCRIPT_NAME" => ""
51 ),
52 ))
53 )
54
55 ...
56
c720137 @alexksikes Fixed schema.sql and better install instructions.
authored
57 8) Make sure lighttpd has write access to the directory ./public/resumes/
d9007b6 @alexksikes First commit.
authored
58 You'd do something like this: sudo chgrp www-data ./public/resumes; chmod 775 ./public/resumes;
59
c720137 @alexksikes Fixed schema.sql and better install instructions.
authored
60 9) Restart lighttpd and you're done.
Something went wrong with that request. Please try again.