fukamachi / clack

Web server abstraction layer for Common Lisp
MIT License
1.04k stars 86 forks source link

Clack not working in executable #183

Closed Peter015 closed 1 year ago

Peter015 commented 1 year ago

When trying to run clack from an executable, it doesn't run. Here is what I am using to build the program:

sbcl --non-interactive --load ./src/package.lisp --eval "(in-package :pastebin)" \
                                       --eval "(ql:quickload '(:clack :ningle :djula :cl-json :woo :dexador))" \
                                       --load ./src/snippets.lisp --load ./src/server.lisp --eval "(sb-ext:save-lisp-and-die \"SnipBit\" :toplevel #'start-server :executable t)"

And the file outputs as expected. When I try to run the executable, I get the output:

Woo server is started.
Listening on 127.0.0.1:3200.

but when I visit the IP nothing is showing. I would like to run this in a docker container, running it through an executable. Thank you

Peter015 commented 1 year ago

I'm dumb I just had to start a loop. Still not working the way I want it to but I think its just a code issue