Re: [racket-users] Can I somehow connect to and update values in a specific hash table used by a running web server?

2019-12-23 Thread George Neuner
On 12/21/2019 9:25 PM, Matt Jadud wrote: My off-list thought (which was largely because I wasn't sure it would even work) was to run a second web server on another port that was bound to localhost. Then, SSH onto the localhost when needed, and squirt values into the locally bound webserver as

Re: [racket-users] Can I somehow connect to and update values in a specific hash table used by a running web server?

2019-12-22 Thread Philip McGrath
The other advice here is good and could help to implement a more principled solution. But, if you want to do something equivalent to editing a running application's database on the fly, just using Racket values instead of a DB, I would build on `file-box`: https://docs.racket-lang.org/web-server/st

Re: [racket-users] Can I somehow connect to and update values in a specific hash table used by a running web server?

2019-12-22 Thread Marc Kaufmann
Thanks George and Matt, those look great. I think I'll try to implement your version later George, as the syntax-parse makes me sure I'll screw up. However it looks like a really nice way to contain what can be changed/updated, while adding things flexibly to it. And it should be possible to combi

Re: [racket-users] Can I somehow connect to and update values in a specific hash table used by a running web server?

2019-12-21 Thread Matt Jadud
My off-list thought (which was largely because I wasn't sure it would even work) was to run a second web server on another port that was bound to localhost. Then, SSH onto the localhost when needed, and squirt values into the locally bound webserver as needed. Depending on the server config (e.g.,

Re: [racket-users] Can I somehow connect to and update values in a specific hash table used by a running web server?

2019-12-21 Thread George Neuner
On 12/21/2019 4:44 AM, Marc Kaufmann wrote: one useful feature of the Django web framework is that it is easy to access the database and change it on the fly. I am not using a DB, but a hash inside of Racket for various reasons. I understand that it would be easy to connect to a database in an

[racket-users] Can I somehow connect to and update values in a specific hash table used by a running web server?

2019-12-21 Thread Marc Kaufmann
Hi all, one useful feature of the Django web framework is that it is easy to access the database and change it on the fly. I am not using a DB, but a hash inside of Racket for various reasons. I understand that it would be easy to connect to a database in any language, and getting the hash is a