artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: REPL support?


From: Nala Ginrut
Subject: Re: REPL support?
Date: Thu, 02 Feb 2023 18:46:00 +0800
User-agent: mu4e 1.4.15; emacs 27.1

Hi Jurij!

Jurij Podgoršek writes:

> Hello,
>
> I am trying out artanis. So far I've managed to connect it to a mysql
> database and define a few routes.
>
> Is it possible to connect a REPL into a running application instance? In
> a manner, similar to chickadee, maybe
> (https://dthompson.us/manuals/chickadee/Live-Coding.html#Live-Coding)?

You can run Artanis in REPL for debug, but it's different from what
chickadee does if you expect the same thing exactly.

--------------------in REPL--------------------
(import (artanis artanis))
(init-server)
(run) ; you may specify listenning port with #:port
----------------------end----------------------


> Reading the documentation, I've stumbled upon the debug.monitor option
> for checking files for changes and reloading those files. I tried to add
> a directory by hand and failed, OTOH I also tried to define
> models/controllers to check for changes but I'm getting an error there too.

debug.monitor is useful to auto reload controller when you debug you
business logic, not suitable for every kind of files.

> Maybe the issue is that I'm running guile 3.0.9? I've installed artanis
> 0.5.1 using guix (had to modify the guile-dbi package definition to get
> it to work on guile3; I will send a patch to guix later on).

We've been running our in house SaaS with 3.0.9, it seems good so far.



Best regards.


--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]