How to publish Smalltalk Image from Pharo Workspace
Ephemeric cloud is a cloud platform which is managed by REST API. It is very simple to publish your Pharo Image as ephemeric using just Pharo itself. You may execute the below listed script in any morden Pharo instance to publish it online (
ZnClient class is available by default in Pharo).
Please note that one of requirements to the published images is that it must run a web server on
8080 port. Please make sure that the server auto starts a web server on
8080 upon the start of the Image.
NoteFor instance, Teapot HTTP server does not start automatically as it is needed to be added to the start up list manually first.
To start the publishing process, save the current state of your image to a disk:
WarningDo not execute the saving of the Image with the rest of the script in just one "do it" command as it will lead to unexpected behaviour: Image will try to publish itself automatically upon every start, possibly breaking in headless mode.
After you saved the image will execute the following code in Playground (or Workspace):
That's it, you should have an inspector opened on URL of your online application.
Please try the script and share your feedback with me.