askeetプロジェクト二日目の続き。
http://www.symfony-project.com/askeet/ja/2
結局解決しました。svnにあるファイルと比べたら改行コードが違ったのでCR+LFからLFに変更したところ動きました。
H:\web\sfprojects\askeet>symfony propel-build-model Buildfile: C:\Program Files\xampp\php\PEAR\symfony\vendor\propel-generator\build .xml [resolvepath] Resolved H:\web\sfprojects\askeet/config to H:\web\sfprojects\aske et\config propel-project-builder > check-project-or-dir-set: propel-project-builder > check-project-set: propel-project-builder > set-project-dir: propel-project-builder > check-buildprops-exists: propel-project-builder > check-buildprops-for-propel-gen: propel-project-builder > check-buildprops: propel-project-builder > configure: [echo] Loading project-specific props from H:\web\sfprojects\askeet\config/ propel.ini [property] Loading H:\web\sfprojects\askeet\config\propel.ini propel-project-builder > om: [phing] Calling Buildfile 'C:\Program Files\xampp\php\PEAR\symfony\vendor\pr opel-generator\build-propel.xml' with target 'om' [property] Loading C:\Program Files\xampp\php\PEAR\symfony\vendor\propel-genera tor\.\default.properties propel > check-run-only-on-schema-change: propel > om-check: propel > om: [echo] +------------------------------------------+ [echo] | | [echo] | Generating Peer-based Object Model for | [echo] | YOUR Propel project! (NEW OM BUILDERS)! | [echo] | | [echo] +------------------------------------------+ [phingcall] Calling Buildfile 'C:\Program Files\xampp\php\PEAR\symfony\vendor\pr opel-generator\build-propel.xml' with target 'om-template' [property] Loading C:\Program Files\xampp\php\PEAR\symfony\vendor\propel-genera tor\.\default.properties propel > om-template: [propel-om] Target database type: mysql [propel-om] Target package: lib.model [propel-om] Using template path: C:\Program Files\xampp\php\PEAR\symfony\vendor\ propel-generator\templates [propel-om] Output directory: H:\web\sfprojects\askeet [propel-om] Processing: schema.xml [propel-om] Processing Datamodel : JoinedDataModel [propel-om] - processing database : propel [propel-om] + ask_question [propel-om] -> BaseQuestionPeer [builder: SfPeerBuilder] [propel-om] -> BaseQuestion [builder: SfObjectBuilder] [propel-om] -> QuestionMapBuilder [builder: SfMapBuilderBuilder] [propel-om] -> QuestionPeer [builder: SfExtensionPeerBuilder] [propel-om] -> Question [builder: SfExtensionObjectBuilder] [propel-om] + ask_answer [propel-om] -> BaseAnswerPeer [builder: SfPeerBuilder] [propel-om] -> BaseAnswer [builder: SfObjectBuilder] [propel-om] -> AnswerMapBuilder [builder: SfMapBuilderBuilder] [propel-om] -> AnswerPeer [builder: SfExtensionPeerBuilder] [propel-om] -> Answer [builder: SfExtensionObjectBuilder] [propel-om] + ask_user [propel-om] -> BaseUserPeer [builder: SfPeerBuilder] [propel-om] -> BaseUser [builder: SfObjectBuilder] [propel-om] -> UserMapBuilder [builder: SfMapBuilderBuilder] [propel-om] -> UserPeer [builder: SfExtensionPeerBuilder] [propel-om] -> User [builder: SfExtensionObjectBuilder] [propel-om] + ask_interest [propel-om] -> BaseInterestPeer [builder: SfPeerBuilder] [propel-om] -> BaseInterest [builder: SfObjectBuilder] [propel-om] -> InterestMapBuilder [builder: SfMapBuilderBuilder] [propel-om] -> InterestPeer [builder: SfExtensionPeerBuilder] [propel-om] -> Interest [builder: SfExtensionObjectBuilder] [propel-om] + ask_relevancy [propel-om] -> BaseRelevancyPeer [builder: SfPeerBuilder] [propel-om] -> BaseRelevancy [builder: SfObjectBuilder] [propel-om] -> RelevancyMapBuilder [builder: SfMapBuilderBuilder] [propel-om] -> RelevancyPeer [builder: SfExtensionPeerBuilder] [propel-om] -> Relevancy [builder: SfExtensionObjectBuilder] BUILD FINISHED Total time: 10.2896 seconds
$ mysqladmin -u youruser -p create askeet $ symfony propel-build-sql $ mysql -u youruser -p askeet < data/sql/schema.sql $ symfony propel-generate-crud frontend question Question
http://local.makotokw.com/askeet/question
が見れません。
404エラー
httpd.confを見たら案の上rewrite moduleを読み込んで無かったので以下を有効に
LoadModule rewrite_module modules/mod_rewrite.so
http://www.symfony-project.com/forum/index.php/t/283/
にて同様のスレッドがありました
しかし、今度は400エラー
askeetをサブディレクトリに置いているからrewriteがおかしくなってました
.httaccessの
# RewriteBase
を
RewriteBase /askeet/
に変更。
うまくいきました。これでday 2も何とか終了。あと22日