Setting Environment Cn

这里只是针对如何设置你的环境的一个指导。 第一步,用版本控制系统例如Subversion或者Git. Don't version config/config.php 当你开发app程序时(在你的电脑上),在config/config.php中进行设置。

   !defined('AK_ENVIRONMENT') && define('AK_ENVIRONMENT','development');

Web requests you make will run against the development DB. 一旦你完成了本地改变,提交你的站点,并且在发布产品的机器上检出,在那里你需要设置:

   !defined('AK_ENVIRONMENT') &&  define('AK_ENVIRONMENT','production');

关于单元测试,你再任何时候都可以调用

  ./script/test unit

那么环境将为你设置成'testing'. 正确的方法是在提交之前进行本地测试。 Akelos仍然没有远程的展开脚本,所以你需要在远程服务器上运行migrations,如果那里的database scheme改变了。

 
setting-environment_cn.txt · Last modified: 2008/08/27 11:23 by liyh
 

The Akelos Framework was created by Bermi Ferrer and other contributors.
Potions of the code and documentation have been ported from Ruby on Rails.

The Akelos Framework is released under the LGPL license.

"Akelos", "Akelos Framework", and the Akelos logo are trademarks of Bermi Labs All rights reserved.

Wiki driven by DokuWiki