I wonder if there is a way to get all the relevant configs in an image to
point to the smalltalkhub repo instead of the mc.stfx.eu repo temporarily.


In Pharo 6.1 if a person wants to switch away from the mc.stfx.eu domain in
their ConfigurationOf* and BaselineOf* specs you can right click on a
package in Nautilus, choose "Rewrite code" then choose "Rewrite code" again
and paste each of the below into the box and save it to rewrite the
repository definition.

RBParseTreeRewriter new
        replace: '''http://mc.stfx.eu/ZincHTTPComponents''' with:
'''http://smalltalkhub.com/mc/SvenVanCaekenberghe/ZincHTTPComponents/main''';
        yourself 

RBParseTreeRewriter new
        replace: '''http://mc.stfx.eu/Zodiac''' with:
'''http://smalltalkhub.com/mc/SvenVanCaekenberghe/Zodiac/main''';
        yourself 

RBParseTreeRewriter new
        replace: '''http://mc.stfx.eu/Neo''' with:
'''http://smalltalkhub.com/mc/SvenVanCaekenberghe/Neo/main''';
        yourself 


to "fix" Zinc, Zodiac, and Neo respectively. 





Sven Van Caekenberghe-2 wrote
> Hi,
> 
> This evening I somehow broke my stfx.eu server while doing an ubuntu dist
> upgrade (an old AWS EC2 machine).
> 
> This means several websites / web services hosted by that machine are
> down, most notably mc.stfx.eu (hosting several of my packages) and
> ws.stfx.eu (used for shared smalltalk workspaces). A couple of Zinc tests
> will also fail.
> 
> For source code access, all my public repos exist both in an up to date
> form on GitHub (http://github.com/svenvc) as well in the original form in
> SmalltalkHub (http://smalltalkhub.com/#!/~SvenVanCaekenberghe) or SS3.
> 
> The main problem there is that the distributed ConfigurationsOf and
> Catalog entries will still point to the original. This is not a problem
> with git's BaselineOf definitions.
> 
> Although the machine will no longer boot, I managed to mount the original
> volume on another instance so I can still access the whole filesystem.
> This will make it possible to eventually recover most services. But this
> will take time as these things never happen when it is convenient. It will
> give me an opportunity to modernise the setup though, which is good.
> 
> Sorry for the inconvenience.
> 
> Sven





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to