Installing code in a running image
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? ThanksDavide
On 1 Apr 2022, at 18:35, Davide Varvello via Pharo-users <pharo-users@lists.pharo.org> 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
Thanks MarkusIt seems CodeImporter is the right tool Davide On Monday, April 4, 2022, 11:41:50 AM GMT+2, Marcus Denker <marcus.denker@inria.fr> wrote: On 1 Apr 2022, at 18:35, Davide Varvello via Pharo-users <pharo-users@lists.pharo.org> 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
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 <marcus.denker@inria.fr> wrote:
On 1 Apr 2022, at 18:35, Davide Varvello via Pharo-users <pharo-users@lists.pharo.org> 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
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 <tim@testit.works> 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 <marcus.denker@inria.fr> wrote: On 1 Apr 2022, at 18:35, Davide Varvello via Pharo-users <pharo-users@lists.pharo.org> 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
What about using https://github.com/pharo-ide/TelePharo (by MarcusDenker <https://github.com/pharo-ide/TelePharo/commits?author=MarcusDenker>) I've never used but looks like it could fit your needs. Anyway if your client can afford 1 minute out of the business you can stop the image and load a Git repo, save and restart. On Fri, Apr 1, 2022 at 6:36 PM Davide Varvello via Pharo-users < pharo-users@lists.pharo.org> 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?
Thanks Davide
The problem is that this not yet running on newer Pharo versions⦠sadly I did not have enough time and energy to push that the last years. We really need to re-assess and restart to push in that direction of a remote enabled IDEâ¦. Marcus
On 4 Apr 2022, at 15:13, Jesus Mari Aguirre <jmariaguirre@gmail.com> wrote:
What about using https://github.com/pharo-ide/TelePharo <https://github.com/pharo-ide/TelePharo> (by MarcusDenker <https://github.com/pharo-ide/TelePharo/commits?author=MarcusDenker>) I've never used but looks like it could fit your needs. Anyway if your client can afford 1 minute out of the business you can stop the image and load a Git repo, save and restart.
On Fri, Apr 1, 2022 at 6:36 PM Davide Varvello via Pharo-users <pharo-users@lists.pharo.org <mailto:pharo-users@lists.pharo.org>> 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?
Thanks Davide
participants (4)
-
Davide Varvello -
Jesus Mari Aguirre -
Marcus Denker -
Tim Mackinnon