2008年7月9日水曜日

SproutCoreのHelloWorldをApacheで運用できるのか?

答え:できた.

引き続きはhello_worldディレクトリにて.

まずはコマンド:
$ sc-build

tmpディレクトリができる.
READMEにあるように引数に'all'をつけるとエラーがでる.なんでだろう?

で,移動:
MacOS XのApacheは"/Library/WebServer/Documents/"の下でサービスしているので
hello_world/tmp/build/static/下の
hello_world, prototype, sproutcoreディレクトリを'static'フォルダ(名前はなんでも良い)にまとめて移動.
こうなる.
$ pwd
/Library/WebServer/Documents/static
$ ls
hello_world/ prototype/ sproutcore/
$


で,アクセス:
http://localhost/static/hello_world/

0 件のコメント: