Discussion:
[racket] how to start a Web Application from a Server
Chrakhan Barzanji
2015-03-20 18:47:42 UTC
Permalink
Hi,
I have a dynamic web application, which i start with the below code. I
installed Racket on a VM and want to run the Racket WebApplicarion from
this virtual server which has an IP
but when I run the Racket-Program i get following message: Your Web
application is running at http://localhost:8080. Stop this program at any
time to terminate the Web Server.
this means the program is running but how can i open the web application
with a browser! It can't be on localhost! I'm running it from the server
which i connect via VPN!
the serve/servlet:
....
(module+ main
(serve/servlet
dispatch
#:stateless? #f
#:launch-browser? #f
#:connection-close? #t
#:quit? #f
#:listen-ip #f
#:port 8080
#:servlet-regexp #rx""
#:extra-files-paths (list static)
#:servlet-path "/"
;#:manager mgr
#:log-file "try-racket-serve-log.txt"))
p.s.: locally works every thing as it should be...but i want it to put the
Application on my server too!
please write me when you can't understand me!

thanks
Jay McCarthy
2015-03-21 15:03:10 UTC
Permalink
The message that it is available on localhost is just informative
during development. When you give "#:command-line? #t" it won't be
shown. When you passed the argument "#:listen-ip #f" this means that
it will be active on all IPs that the machine has. So, whatever the
machine's IP is should work, provider your firewall and VPN are set up
properly.

Jay

On Fri, Mar 20, 2015 at 1:47 PM, Chrakhan Barzanji
Post by Chrakhan Barzanji
Hi,
I have a dynamic web application, which i start with the below code. I
installed Racket on a VM and want to run the Racket WebApplicarion from this
virtual server which has an IP
but when I run the Racket-Program i get following message: Your Web
application is running at http://localhost:8080. Stop this program at any
time to terminate the Web Server.
this means the program is running but how can i open the web application
with a browser! It can't be on localhost! I'm running it from the server
which i connect via VPN!
....
(module+ main
(serve/servlet
dispatch
#:stateless? #f
#:launch-browser? #f
#:connection-close? #t
#:quit? #f
#:listen-ip #f
#:port 8080
#:servlet-regexp #rx""
#:extra-files-paths (list static)
#:servlet-path "/"
;#:manager mgr
#:log-file "try-racket-serve-log.txt"))
p.s.: locally works every thing as it should be...but i want it to put the
Application on my server too!
please write me when you can't understand me!
thanks
____________________
http://lists.racket-lang.org/users
--
Jay McCarthy
http://jeapostrophe.github.io

"Wherefore, be not weary in well-doing,
for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
- D&C 64:33
____________________
Racket Users list:
http://lists.racket-lang.org/users
Loading...