Thanks Tim, that's a valid question, I don't love git so much, we have the
code repository versioned on mercurial and we are also trying to have no more
that a single baseline in production. On customers' machines should run only a
small portion of code so I guess CodeImporter is enough, but I'll feedback the
list within some days with my results ;-)
Thanks for helpingCheersDavide
On Monday, April 4, 2022, 03:31:42 PM GMT+2, Tim Mackinnon
wrote:
From memory - the Excercism project does this too (can't recall if it uses
CodeImporter, but it does get source from Exercism and load it into the image).
Having said this - are you sure you don't want to have some versioned packed in
git that your image can load up when needed? It would add a version control
element for you which might make sense.
Tim
On Mon, 4 Apr 2022, at 2:15 PM, Davide Varvello via Pharo-users wrote:
Thanks Markus
It seems CodeImporter is the right tool
Davide
On Monday, April 4, 2022, 11:41:50 AM GMT+2, Marcus Denker
wrote:
On 1 Apr 2022, at 18:35, Davide Varvello via Pharo-users
wrote:
Hi Folks!
For a customer of mine I want to download a bunch of new code from my webserver
and installing it in a running Pharo image, is there a feasible way to do it?
Maybe you could just have file-outs on the server and then just load it with
CodeImporter?
Reading from a URL:
ZnClient new get: ‘someURL’.
Loading file outs from a String:
CodeImporter class>>#evaluateString:
Marcus