Auto-updating Pier images

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Auto-updating Pier images

Stephan Eggermont-3
In Pier-Updater in the Pier3Addons we added a class that
every 10 seconds tries to find a newer version of the
Pier-Exported-Code package in its last repository
and then resets the kernel and registers the PRKernelCreatorForPier.
It has a class side initialize that starts the process.

Stephan
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Auto-updating Pier images

Stephan Eggermont-3
We want to be able to run and edit a local pier and push updates to a production server.

When we run the following script as loadPier.st, we have a pier image we can update
by making sure there is a new file in the mczs directory.

on mac
  open -n ./Pharo\ 3.app --args Pharo-30792.image st loadPier.st
on linux:
  nohup ./Pharo Pharo-30792.image st loadPier.st &

Contents of loadPier.st:

Gofer new
        smalltalkhubUser: 'Pier'
        project: 'Pier3Addons';
        configurationOf: 'Pier3AddOns';
        load.

((Smalltalk at: #ConfigurationOfPier3AddOns) project version: #'development') load: 'Pier-Exporter-Code'.

(Smalltalk at: #WAAdmin) clearAll.
(Smalltalk at: #WAAdmin) defaultDispatcher  
        register: (Smalltalk at: #WAFileHandler) default
        at: 'files'.
(Smalltalk at: #WAAdmin) disableDevelopmentTools.

Gofer new
        directory: 'mczs';
        package: 'Pier-Exported-Code';
        load.
       
Gofer new
        smalltalkhubUser: 'Pier'
        project: 'Pier3Addons';
        package: 'Pier-Updater';
        load.

(Smalltalk at: #WAAdmin) defaultDispatcher defaultName:'pier'.
       
(Smalltalk at: #ZnZincServerAdaptor) startOn: 8080.


_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki