Ask HN: How to run arc web app in the background?
I download the web app from http://ycombinator.com/arc/arc3.1.tar, and deploy it.
ssh to my host, then :
mzscheme -f as.scm
(load "news.arc")
(thread (nsv))
But when i exit from ssh, the server "nsv" is down. so i can't back to the prompt.
I try this: "mzscheme -m -f as.scm < news.arc &", but i got errors like "Error: "Bad object in expression #<eof>"
How shoud i do?
3 comments
[ 4.3 ms ] story [ 18.3 ms ] threadYou can then "detach" from Screen or TMUX, end your ssh session, and scheme will still be running. The cool thing is you can later ssh into your host, and re-attach to Screen or TMUX as if you never disconnected.
Whether it's the best way to run news.arc, I can't say, but they are very useful tools to learn about, and should work for this problem.
http://en.wikipedia.org/wiki/GNU_Screen
http://en.wikipedia.org/wiki/Tmux
I use screenie:
> apt-get install screenie
> screenie