Hi Héctor,
On 2015-12-03 18:22:01 -0800, Héctor Mc wrote:
> I'm trying execute a web application in background or (like daemon ej.
> apache/httpd) in this way racket -t webapp.rkt or racket -t webapp.rkt & ,
> but none of them work.
Both of these should work, but it depends on how you have written your program.
When you use -t, it will require the module and run top-level expressions in
your module. So that means your "webapp.rkt" will need to have an expression in
the module's top-level that kicks off the application.
If you have instead written a `main` function in the module to kick off the
program,
you need the -m flag too.
Nowadays, the idiomatic way to set up a driver for your program is to use a
main submodule:
http://docs.racket-lang.org/guide/Module_Syntax.html#%28part._main-and-test%29
And then you don't need to use any flags to run the program.
(if you can share more details about your webapp.rkt program, we could provide
more specific advice)
Cheers,
Asumu
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.