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.
Show replies by date