Hi, all,
OK, this maybe isn't 100% Hunchentoot-specific, but it's kind of relevant...
I can't find any information about actually deploying a Hunchentoot web app (or any other Lisp server process). So far I've just been running it under SLIME in Emacs on my dev box.
With *other platforms* (ugh, I know I'm not supposed to say that), there's often a utility for deploying, or a script you can drop in /etc/init.d, or whatever. I haven't found one for SBCL/Hunchentoot/... yet. How do people typically run these? Just ssh to the server and "sbcl --load myfile.lisp &", where the end of myfile.lisp has a (hunchentoot:start-server ...) call? Something clever with ASDF? (N.b., I barely understand ASDF.)
Thanks!
- Ken
On Sat, Nov 15, 2008 at 03:27:50PM -0800, Ken Harris wrote:
Hi, all,
OK, this maybe isn't 100% Hunchentoot-specific, but it's kind of relevant...
I can't find any information about actually deploying a Hunchentoot web app (or any other Lisp server process). So far I've just been running it under SLIME in Emacs on my dev box.
With *other platforms* (ugh, I know I'm not supposed to say that), there's often a utility for deploying, or a script you can drop in /etc/init.d, or whatever. I haven't found one for SBCL/Hunchentoot/... yet. How do people typically run these? Just ssh to the server and "sbcl --load myfile.lisp &", where the end of myfile.lisp has a (hunchentoot:start-server ...) call? Something clever with ASDF? (N.b., I barely understand ASDF.)
I use GNU screen at boot time to start a detached session with emacs and sbcl running. The sbcl additionally loads a Lisp file that loads everything and starts up the swank and hunchentoot servers.
Zach
On 15 Nov 2008, at 23:27, Ken Harris wrote:
Hi, all,
OK, this maybe isn't 100% Hunchentoot-specific, but it's kind of relevant...
I can't find any information about actually deploying a Hunchentoot web app (or any other Lisp server process). So far I've just been running it under SLIME in Emacs on my dev box.
With *other platforms* (ugh, I know I'm not supposed to say that), there's often a utility for deploying, or a script you can drop in /etc/init.d, or whatever. I haven't found one for SBCL/Hunchentoot/... yet. How do people typically run these? Just ssh to the server and "sbcl --load myfile.lisp &", where the end of myfile.lisp has a (hunchentoot:start-server ...) call? Something clever with ASDF? (N.b., I barely understand ASDF.)
Thanks!
- Ken
I make a core file and then run it in screen, generally with a swank server running. Probably less than ideal, but works. Rob
Hi,
On Sat, 15 Nov 2008, "Ken Harris" kengruven@gmail.com writes:
OK, this maybe isn't 100% Hunchentoot-specific, but it's kind of relevant...
I can't find any information about actually deploying a Hunchentoot web app (or any other Lisp server process). So far I've just been running it under SLIME in Emacs on my dev box.
With *other platforms* (ugh, I know I'm not supposed to say that), there's often a utility for deploying, or a script you can drop in /etc/init.d, or whatever. I haven't found one for SBCL/Hunchentoot/... yet. How do people typically run these? Just ssh to the server and "sbcl --load myfile.lisp &", where the end of myfile.lisp has a (hunchentoot:start-server ...) call? Something clever with ASDF? (N.b., I barely understand ASDF.)
I use swank-daemon[1] to daemonize hunchentoot under GNU screen using swank. (BTW, ALIW[2] uses swank-daemon too.)
Regards.
[1] http://www.cliki.net/swank-daemon [2] http://aliw.ce.itu.edu.tr/page/Documents#Daemonize_ALIW
check this one:
http://boinkor.net/archives/2006/02/starting_daemonized_lisp_image_1.html
regards
Ala'a (cmo-0)
On Sun, Nov 16, 2008 at 3:27 AM, Ken Harris kengruven@gmail.com wrote:
Hi, all,
OK, this maybe isn't 100% Hunchentoot-specific, but it's kind of relevant...
I can't find any information about actually deploying a Hunchentoot web app (or any other Lisp server process). So far I've just been running it under SLIME in Emacs on my dev box.
With *other platforms* (ugh, I know I'm not supposed to say that), there's often a utility for deploying, or a script you can drop in /etc/init.d, or whatever. I haven't found one for SBCL/Hunchentoot/... yet. How do people typically run these? Just ssh to the server and "sbcl --load myfile.lisp &", where the end of myfile.lisp has a (hunchentoot:start-server ...) call? Something clever with ASDF? (N.b., I barely understand ASDF.)
Thanks!
- Ken
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
I am using detachtty like this:
a "detach" script: #!/bin/sh prefix="$1" program="`which "$2"`" shift 2 /usr/bin/detachtty --dribble-file "$prefix.dribble" --log-file "$prefix.log" --pid-file "$prefix.dribble" "$prefix.socket" "$program" "$@"
and the way to load it
~/usr/bin/detach sbcl sbcl --eval "(load "start.lisp")"
and have it in crontab so it would go up every reboot (i don't have a root on that machine)
Ignas
we used AWS. initially we used screen, but eventually we had the AWS image start daemontools, which started lisp. after a while we switched from daemontools to some debian or ubuntu equivalent, I don't remember the name
one way or the other, the important thing is to make sure swank also gets started so you can connect remotely with SLIME/Emacs ;-)
we used hunchentoot behind NGINX, which worked like a charm (much easier than apache)
take care
Nick
On Thu, Dec 4, 2008 at 1:08 PM, Ignas Mikalajunas ignas.mikalajunas@gmail.com wrote:
I am using detachtty like this:
a "detach" script: #!/bin/sh prefix="$1" program="`which "$2"`" shift 2 /usr/bin/detachtty --dribble-file "$prefix.dribble" --log-file "$prefix.log" --pid-file "$prefix.dribble" "$prefix.socket" "$program" "$@"
and the way to load it
~/usr/bin/detach sbcl sbcl --eval "(load "start.lisp")"
and have it in crontab so it would go up every reboot (i don't have a root on that machine)
Ignas
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel