Finish basic auth backend. Need frontend now.
passwordless: Set foundation for passwordless auth
Add passswordless auth issue
reformer.fyi
209.38.172.39
reformer.fyi
- VideoThis site runs on two ports in the production container, but one in local development.
Locally, the site is at http://localhost:8080
In a container, http://localhost:80
is the nginx entrypoint.
If nginx is broken, use http://localhost:8080
to go directly to the running cfrr
.
To setup a system, root
access is often required. So, if using sudo
:
sudo make setup
And if not:
make setup
src/reformer/routing.scm:router
to the following, to simulate a bug(define (router request request-body)
(log-request request)
(let ((path (uri->string (request-uri request))))
(cond
((string=? "/feed" path)
(set! visits (+ visits 1))
(home:index visits))
((string=? "/" path)
(set! visits (+ visits 1))
(feed:index))
((string=? "/about" path)
(set! visits (+ visits 1))
(about:index))
(else
(not-found request)))))
M-x compile
and execute make -k run-with-repl
M-x geiser-connect
, default host, port 1689
http://localhost:8080
and notice the incorrect pages. (define (router request request-body)
(log-request request)
(let ((path (uri->string (request-uri request))))
(cond
((string=? "/" path)
(set! visits (+ visits 1))
(home:index visits))
((string=? "/feed" path)
(set! visits (+ visits 1))
(feed:index))
((string=? "/about" path)
(set! visits (+ visits 1))
(about:index))
(else
(not-found request))))) ;; Run C-x C-e on this form
C-x C-e
make run
After that, you should be able to use
make lb run
make container-build container-run
or using bash magic
make container-{build,run}
make container-run
will live load the relevant application code from your git repo into the container, via a volume,
allowing for live reloads.