Hacker News new | ask | show | jobs
Ask HN: How to run arc web app in the background?
2 points by feilaoda 5213 days ago
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?

2 comments

I don't know the answer myself, but if you head on over to http://arclanguage.org, I bet the people there can point you in the right direction.
I doubt this is the best way, but you could launch it in a GNU Screen session or a TMUX session.

You 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

Thanks man. I download Screen and it is perfect.

I use screenie:

> apt-get install screenie

> screenie