Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (39 sloc) 1.285 kb
1) Download the latest tar ball: http://github.com/alexksikes/mailer/tarball/master.
2) tar xvzf "the tar ball"
3) Download install webpy, follow instructions here: http://webpy.org/install
4) Setup lighttpd, here is a part your config file:
...
name = "mailer"
script = "path to ./application.py"
server.document-root = "path to ./public/"
# password protect access to this site
$HTTP["url"] !~ "" {
auth.require = ( "" =>
(
"method" => "digest",
"realm" => "Authorized users only",
"require" => "valid-user",
))
}
url.rewrite += (
# Commented for development
"^/img/(.*)$" => "/img/$1",
"^/css/(.*)$" => "/css/$1",
"^/js/(.*)$" => "/js/$1",
"^/(.*)$" => script + "/$1",
)
fastcgi.server += ( script =>
((
"socket" => "/tmp/" + name + var.PID + ".socket",
"bin-path" => script,
"check-local" => "disable",
"max-procs" => 1,
"bin-environment" => (
"REAL_SCRIPT_NAME" => ""
),
))
)
...
5) Setup your database: mysql -p mailer < ./schema.sql
6) Go over your iste settings: go over config_example.py and rename it config.py
7) Restart lighttpd and you're done!
Jump to Line
Something went wrong with that request. Please try again.