https://github.com/smortex/cgirun
Tooling to help with CGI development.
https://github.com/smortex/cgirun
Last synced: about 1 month ago
JSON representation
Tooling to help with CGI development.
- Host: GitHub
- URL: https://github.com/smortex/cgirun
- Owner: smortex
- Created: 2025-02-10T20:14:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-12T02:02:04.000Z (over 1 year ago)
- Last Synced: 2025-03-15T10:05:24.802Z (about 1 year ago)
- Language: Ruby
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cgirun
This script serve static files form the document root (set with `--document-root`, default to `.` when not set) over HTTP, but there is a catch! Any file in the cgi-bin directory (set with `--cgi-bin`, default to `./cgi-bin` when not set) will be executed as a CGI script.
## Usage
```sh-session
bundle install
bundle exec ./cgirun --document-root ~/Projects/my-website/public --cgi-bin ~/Projects/my-website/cgi-bin
```