This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PORT=5000 | |
# This should be the directory name/app name | |
APP="TDP" | |
PIDFILE="$HOME/$APP.pid" | |
STATUS="$HOME/$APP.status" | |
# The actual path on disk to the application. | |
APP_HOME="$HOME/$APP" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Download git and make gitweb/gitweb.cgi (See gitweb/INSTALL how to set gitweb root etc.) | |
# 2. Copy this file as gitweb/app.psgi | |
# 3. cd gitweb; plackup | |
# 4. Access http://localhost:3000/gitweb.cgi | |
use Plack::Builder; | |
use Plack::App::WrapCGI; | |
use Plack::App::File; | |
builder { |