[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Custom repository (for chicken .so files)
From: |
Alejandro Forero Cuervo |
Subject: |
Re: [Chicken-users] Custom repository (for chicken .so files) |
Date: |
Tue, 19 Sep 2006 13:08:47 +0000 |
User-agent: |
Mutt/1.5.9i |
> I couldn't make this work with CGI apps though. [...]
>
> Any idea on how to overcome this problem?
How about:
> #!/bin/sh
> ":";export CHICKEN_REPOSITORY="/home/htdocs/chicken";exec /usr/local/bin/csi
> -s $0 "$@"
>
> (use stream-cgi html-stream)
BTW, the export assumes you're using bash. If you're using GNU/Linux,
this is likely your case.
If you're using Apache, I would suggest setting the CHICKEN_REPOSITORY
environment variable using its SetEnv directive; to me it sounds
better to keep it in your configuration files rather than in your
source code. In this case you'd just do something along the lines of:
#!/usr/local/bin/csi -s
(use stream-cgi html-stream)
Good luck. :-)
Alejo.
http://azul.freaks-unidos.net/