私は Yii と Git の両方を同時に学んでおり、コミットに関する問題を見つけています。それが重要な場合は、BitBucket を使用しています。
基本的に、プロジェクトを作成してリポジトリにコミットすると、そのリポジトリを別のマシンにプルしようとすると、Yii ランタイム構成エラーが大量に発生します。
私はそれを回避する方法を見つけましたが、面倒なようです。プロジェクトが追加された直後からリポジトリの古いコミットをロードし、プロジェクトを手動で削除してから、yii ツール (yiic) を使用してプロジェクトを再追加すると、最新のコミットからの更新で上書きして、すべてを元に戻すことができます。 .
これは面倒で、トラブルを求めているようです。ここで Yii で間違っていることはありますか?
編集 以下は、表示される正確なエラーメッセージです。
CException
Application runtime path "/Applications/MAMP/htdocs/yii-sandbox/projects/trackstar/protected/runtime" is not valid. Please make sure it is a directory writable by the Web server process.
/Applications/MAMP/htdocs/yii-sandbox/framework/base/CApplication.php(289)
277 return $this->_runtimePath;
278 }
279 }
280
281 /**
282 * Sets the directory that stores runtime files.
283 * @param string $path the directory that stores runtime files.
284 * @throws CException if the directory does not exist or is not writable
285 */
286 public function setRuntimePath($path)
287 {
288 if(($runtimePath=realpath($path))===false || !is_dir($runtimePath) || !is_writable($runtimePath))
289 throw new CException(Yii::t('yii','Application runtime path "{path}" is not valid. Please make sure it is a directory writable by the Web server process.',
290 array('{path}'=>$path)));
291 $this->_runtimePath=$runtimePath;
292 }
293
294 /**
295 * Returns the root directory that holds all third-party extensions.
296 * @return string the directory that contains all extensions. Defaults to the 'extensions' directory under 'protected'.
297 */
298 public function getExtensionPath()
299 {
300 return Yii::getPathOfAlias('ext');
301 }