私はこのコードを使用して、Pharo1.2イメージ内からComancheWebサーバーから静的ファイルを提供していました。
createService
| contentPath dirPath svc ma |
contentPath:='htdocs'。
dirPath:= FileDirectoryデフォルトfullNameFor:contentPath。
svc:=(HttpService on:セルフポート)
名前:'seaside-'、セルフポートgreasString。
ma:=ModuleAssemblyコア。
maエイリアス:'/ static' to:[
ma serverRoot:dirPath。
ma documentRoot:dirPath。
ma directoryIndex:'index.htmlindex.htm'。
maserveFiles]。
ma addPlug:自己。
svcプラグ:marootModule。
^ svc
http://samadhiweb.com/blog/2011.07.10.seaside.comanche.staticfiles.htmlからのコード
残念ながら、これはPharo1.3では機能しなくなりました。ModuleAssemblyクラスはもう存在しません。では、静的ファイルを提供するためにコマンチェを設定するにはどうすればよいですか?