{"id":186458,"date":"2013-07-12T16:17:02","date_gmt":"2013-07-12T12:17:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=186458"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=186458","title":{"rendered":"<span class=\"post_title\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u043d\u0430 \u0441\u0430\u0439\u0442\u0430\u0445 \u0410\u043b\u0430\u0432\u0430\u0440<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<br \/>  \u0421\u0430\u0439\u0442\u044b Alawar \u2014 \u044d\u0442\u043e \u0441\u0430\u0439\u0442\u044b \u0434\u043b\u044f <a href=\"http:\/\/www.alawar.ru\">\u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e<\/a>, <a href=\"http:\/\/www.alawar.com\">\u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u043e\u0433\u043e<\/a>, \u0435\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u043a\u0438\u0445 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u044b\u043d\u043a\u043e\u0432, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u0434\u043b\u044f mobile-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0441\u0430\u0439\u0442\u044b \u043f\u0430\u0440\u0442\u043d\u0435\u0440\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438 \u0434\u0440. \u0412\u0441\u0435 \u043e\u043d\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0435 Yii, <a href=\"http:\/\/habrahabr.ru\/company\/alawar\/blog\/157877\/\">\u043e \u0447\u0435\u043c \u043c\u044b \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u0431\u043b\u043e\u0433\u0435 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435<\/a>.<br \/>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438 \u043d\u0430\u0448\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432, \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430. \u0410 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0432\u0435\u0434\u0430\u044e, \u043a\u0430\u043a \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u0435\u043f\u043b\u043e\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f\u0445.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h5>\u041a\u043e\u043d\u0444\u0438\u0433\u0438<\/h5>\n<p>  \u0414\u043b\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0430\u0439\u0442\u043e\u0432 \u043c\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u0432 Yii:<\/p>\n<pre><code class=\"bash\">protected\/config \t\t\/console  \t\t\t\/config.php \t\t\t\/import.php \t\t\t\/cache.php \t\t\t\/log.php \t\t\t\u2026 \t\t\/mobile \t\t\t\/config.php \t\t\t\/import.php \t\t\t\/cache.php \t\t\t\/log.php \t\t\t\u2026 \t\t\/sites   \t\t\t\/alawar.ru.php \t\t\t\/iphone.alawar.ru.php \t\t\t\/ipad.alawar.ru.php \t\t\t\/site.php \t\t\t\u2026 \t\t\/test \t\t\t\/config.php \t\t\t\/import.php \t\t\t\u2026 \t\t\/web \t\t\t\/config.php \t\t\t\/import.php \t\t\t\/log.php \t\t\t\u2026 \t\t\/~server \t\t\t\/amqp.php \t\t\t\/crontab.txt \t\t\t\/db.php \t\t\t\/eauth.php \t\t\t\/mongo.php \t\t\t\/redis.php \t\t\t\/smsgate.php \t\t\t\/services.php \t\t\t\/comment.php\t\t\t \t\t\t\u2026  <\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u0431\u0438\u0442\u044b \u043d\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0438\u0445 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e:  <\/p>\n<ul>\n<li>web\/config.php \u2014 \u043a\u043e\u043d\u0444\u0438\u0433, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0431\u0449\u0438\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 web-\u0441\u0430\u0439\u0442\u043e\u0432<br \/> \n<pre><code class=\"php\">&lt;?php return array( \t'preload' =&gt; array( 'log' ), \t\/\/\u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \t'import' =&gt; require(dirname(__FILE__) . '\/import.php'), \t'components' =&gt; array( \t\t\u2026 \t\t\/\/\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a MySql \t\t'db' =&gt; require(dirname(dirname(__FILE__)) . '\/server\/mysql.php'), \t\t\/\/\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a Redis \t\t'redis' =&gt; require(dirname(dirname(__FILE__)) . '\/server\/redis.php'), \t\t\/\/\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a Mongo \t\t'mongo' =&gt; require(dirname(dirname(__FILE__)) . '\/server\/mongo.php'), \t\t\/\/\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043b\u043e\u0433\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \t\t'log' =&gt; require(dirname(dirname(__FILE__)) . '\/web\/log.php'),\t \t\t\/\/\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \t\t'comment' =&gt; require(dirname(dirname(__FILE__)) . '\/server\/comment.php'), \t\t\/\/\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 RabbitMQ \t\t'amqp' =&gt; require(dirname(dirname(__FILE__)) . '\/server\/amqp.php'), \t\t\/\/\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u0446. \u0441\u0435\u0442\u0438 \t\t'eauth' =&gt; require(dirname(dirname(__FILE__)) . '\/server\/eauth.php'), \t\t\u2026 \t), \t'params' =&gt; array( \t\t\/\/\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c \t\t'services' =&gt; require(dirname(dirname(__FILE__)) . '\/server\/services.php'), \t\t\/\/\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u043c\u0441-\u0448\u043b\u044e\u0437\u0443 \t\t'smsgate' =&gt; require(dirname(dirname(__FILE__)) . '\/server\/smsgate.php'), \t\t\u2026 \t)\t ); <\/code><\/pre>\n<p>  <\/li>\n<li>site\/{site.ru}.php \u2014 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u0430 {site.ru} (\u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 + \u043e\u0431\u0449\u0438\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 web\/config.php):<br \/> \n<pre><code class=\"php\">return CMap::mergeArray( \tarray( \t\t'basePath' =&gt; dirname(__FILE__) . DIRECTORY_SEPARATOR . '..'. DIRECTORY_SEPARATOR . '..', \t\t'name' =&gt; 'Site', \t\t'theme' =&gt; 'site', \t\t'host' =&gt; 'site.ru', \t\t'language' =&gt; 'ru', \t\t\/\/\u043c\u043e\u0434\u0443\u043b\u0438 site.ru \t\t'modules' =&gt; array( \t\t\t\u2026 \t\t), \t\t\/\/\u043c\u043e\u0434\u0443\u043b\u0438 site.ru \t\t'controllerMap' =&gt; array( \t\t\t\u2026 \t\t), \t\t\/\/\u0441\u043f\u0435\u0446\u0435\u0444\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u043b\u044f site.ru \t\t'components' =&gt; array(\t\t \t\t\t\u2026 \t\t), \t\t\/\/ application-level parameters that can be accessed \t\t\/\/ using Yii::app()-&gt;params['paramName'] \t\t'params' =&gt; array( \t\t\t\/\/runtime \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \t\t\t\/\/\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: \t\t\t\/\/Yii::app()-&gt;params['runtimeData']['css'] - \u043f\u0443\u0442\u044c \u043a \u043c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 css \u0441\u0430\u0439\u0442\u0430  \t\t\t\/\/Yii::app()-&gt;params['runtimeData']['js'] - \u043f\u0443\u0442\u044c \u043a \u043c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 js \u0441\u0430\u0439\u0442\u0430 \t\t\t'runtimeData' =&gt; @include(dirname(__FILE__).'\/runtime\/sites\/site.ru.php'), \t\t\t'adminEmail' =&gt; 'admin@site.ru', \t\t), \t), require(dirname(dirname(__FILE__)).'\/web\/config.php') ); <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0441\u0430\u0439\u0442\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0433\u0438\u0431\u043a\u043e \u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c.  <\/li>\n<li>console\/config.php \u2014 \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043f\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0441\u0445\u043e\u0436 \u0441 web\/config.php, \u043d\u043e \u043e\u043d \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u044b, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0434\u0440.  <\/li>\n<li>test\/config.php \u2014 \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f  <\/li>\n<\/ul>\n<p>  \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0432 protected\/~server \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0435\u043d\u044b \u00ab\u0441\u0435\u0440\u0435\u0432\u0435\u0440\u043e\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435\u00bb \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440(~server \u2014 \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0441\u0438\u043c\u043b\u0438\u043d\u043a\u0430 \u043d\u0430 \u0447\u0435\u043a\u0430\u0443\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432). \u0422\u0430\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u043a\u043e, \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438.<\/p>\n<h5>\u0414\u0435\u043f\u043b\u043e\u0439<\/h5>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443 \u043d\u0430\u0441 \u043f\u0440\u043e\u0435\u043a\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442 \u043d\u0430 3-\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445:  <\/p>\n<ul>\n<li>dev-\u0441\u0435\u0440\u0432\u0435\u0440 \u2014 \u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 <\/li>\n<li>test-\u0441\u0435\u0440\u0432\u0435\u0440 \u2014 \u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u044b <\/li>\n<li>prod-\u0441\u0435\u0440\u0432\u0435\u0440 \u2014 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d<\/li>\n<\/ul>\n<p>  \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u0432\u0435\u0434\u0435\u043d \u0441\u0432\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438:  <\/p>\n<ul>\n<li>dev-config<\/li>\n<li>test-config<\/li>\n<li>prod-config<\/li>\n<\/ul>\n<p>  \u041f\u0440\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u0440\u0435\u0434\u0441\u0432\u0430\u043c\u0438 <a href=\"http:\/\/jenkins-ci.org\/\">jenkins<\/a> \u0438 <a href=\"http:\/\/www.phing.info\/\">phing<\/a>) \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043a\u0430\u043a\u0443\u044e \u0432\u0435\u0442\u043a\u0443 \u0438 \u043a\u0430\u043a\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438 \u043f\u043e\u0434\u043d\u044f\u0442\u044c:  <\/p>\n<pre><code class=\"bash\">#\u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0432\u0435\u0442\u043a\u0438 task-xx \u0432 dev-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 phing -Dbranch=task-xx -Dconfig=dev-config deploy #\u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d \u0441\u0435\u0440\u0432\u0435\u0440\u0435 phing -Dbranch=prod -Dconfig=prod-config deploy <\/code><\/pre>\n<p>  \u0412\u043e\u0442, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c phing:  <\/p>\n<pre><code class=\"xml\">&lt;!-- \u0422\u0430\u0441\u043a \u043f\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 --&gt; &lt;target name=&quot;deploy&quot; depends=&quot;-get-properties&quot;&gt; \t\t&lt;!-- \u041f\u0443\u0442\u044c \u043a \u0434\u0438\u0440\u0435\u043a\u0442\u0440\u043e\u0438\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0435\u043a\u0442 --&gt; \t\t&lt;mkdir dir=&quot;${deploy.path}&quot; \/&gt; \t\t&lt;!-- \u041f\u0443\u0442\u044c \u043a \u0434\u0438\u0440\u0435\u043a\u0442\u0440\u043e\u0438\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0447\u0435\u043a\u0430\u0443\u0447\u0435\u043d\u0430 \u0432\u0435\u0442\u043a\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0441 \u043a\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 --&gt; \t\t&lt;mkdir dir=&quot;${deploy.path}\/application&quot; \/&gt; \t\t&lt;!-- \u041f\u0443\u0442\u044c \u043a \u0434\u0438\u0440\u0435\u043a\u0442\u0440\u043e\u0438\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0447\u0435\u043a\u0430\u0443\u0447\u0435\u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438 --&gt; \t\t&lt;mkdir dir=&quot;${deploy.path}\/config&quot; \/&gt;  \t\t&lt;echo msg=&quot;checkout application and config...&quot; \/&gt; \t\t \t\t&lt;!-- \u0427\u0435\u043a\u0430\u0443\u0442 \u0432\u0435\u0442\u043a\u0438 --&gt; \t\t&lt;exec \t\t\tcommand=&quot;bzr co ${bzr.branch.path} .\/&quot; \t\t\tdir=&quot;${deploy.path}&quot; \t\t\tcheckreturn=&quot;FALSE&quot; \t\t\treturnProperty=&quot;bzr.co.return&quot; \t\t\toutputProperty=&quot;bzr.co.out&quot; \t\t\/&gt; \t\t&lt;if&gt; \t\t\t&lt;!-- \u0415\u0441\u043b\u0438 \u0432\u0435\u0442\u043a\u0438 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0435\u0451, \u043f\u0430\u0447\u043a\u0443\u044e \u043e\u0442 \u0432\u0435\u0442\u043a\u0438 \u0442\u0440\u0430\u043d\u043a --&gt; \t\t\t&lt;equals arg1=&quot;${bzr.co.return}&quot; arg2=&quot;3&quot; \/&gt; \t\t\t&lt;then&gt; \t\t\t\t&lt;exec command=&quot;bzr co ${bzr.trunk.path} .\/&quot; dir=&quot;${deploy.path}\/application&quot;  \/&gt; \t\t\t\t&lt;exec command=&quot;bzr switch -b ${bzr.branch.path}&quot; dir=&quot;${deploy.path}\/application&quot;  \/&gt; \t\t\t&lt;\/then&gt; \t\t&lt;\/if&gt; \t\t \t\t&lt;!-- \u0427\u0435\u043a\u0430\u0443\u0442 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438 --&gt; \t\t&lt;exec command=&quot;bzr co ${bzr.config.path} .\/&quot; dir=&quot;${deploy.path}\/config&quot;  \/&gt; \t\t \t\t&lt;!-- \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u0430\u043f\u043a\u0435 runtime --&gt; \t\t&lt;chmod file=&quot;${deploy.path}\/application\/protected\/runtime&quot; mode=&quot;0777&quot; \/&gt;  \t\t&lt;!-- \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0438\u043c\u043b\u0438\u043d\u043a\u0438 \u043d\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 --&gt; \t\t&lt;exec command=&quot;ln -s ${deploy.path}\/config\/server server&quot;  dir=&quot;${deploy.path}\/application\/protected\/config\/&quot; level=&quot;info&quot;\/&gt; \t\t \t\t&lt;!-- \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0438\u043c\u043b\u0438\u043d\u043a\u0438 \u043d\u0430 php error log --&gt; \t\t&lt;exec command=&quot;ln -s ${php.error.log.path} phplog&quot;  dir=&quot;${deploy.path}\/application\/protected\/runtime\/&quot; level=&quot;info&quot;\/&gt; \t\t \t\t&lt;!-- \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e css \u0438 js \u0438  \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0443\u0442\u0435\u0439 \u043a \u043d\u0438\u043c \u0432 protected\/runtime\/sites\/{site.ru.php} --&gt; \t\t&lt;exec command=&quot;php ${deploy.path}\/application\/protected\/yiic deploy data=css&quot; \/&gt; \t\t&lt;exec command=&quot;php ${deploy.path}\/application\/protected\/yiic deploy data=js&quot; \/&gt; \t\t&lt;!-- \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u0448\u0430\u0440\u0434\u043e\u0432 redis \u0438 mysql --&gt; \t\t&lt;exec command=&quot;php ${deploy.path}\/application\/protected\/yiic deploy data=shardmap&quot; \/&gt; \t&lt;\/target&gt; <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439:  <\/p>\n<pre><code class=\"bash\">application\/ #\u0447\u0435\u043a\u0430\u0443\u0442 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0441 \u043a\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \tprotected\/ \t\t\u2026 \t\tconfig\/ \t\t\t\u2026 \t\t\t~server\/ #\u0441\u0438\u043c\u043b\u0438\u043d\u043a\u0430 \u043d\u0430 config\/server \t\t\t\u2026 \t\t\u2026 \tpublic\/ \t\u2026 config\/ #\u0447\u0435\u043a\u0430\u0443\u0442 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438 \t\u2026 \tserver\/ \t\u2026  <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0418\u0442\u043e\u0433\u043e<\/h5>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u043d\u0430\u043c\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0430:  <\/p>\n<ul>\n<li>\u043b\u0435\u0433\u043a\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0441\u0430\u0439\u0442\u044b<\/li>\n<li>\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u043f\u043b\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/li>\n<li>\u043b\u0435\u0433\u043a\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f\u0445<\/li>\n<li>\u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u0430\u0445<\/li>\n<\/ul>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0443 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u043c\u0438 \u043f\u043e\u0434 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u043c\u0438\u043d\u0443\u0441\u044b, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445 \u2014 \u044d\u0442\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0443\u043a\u0430\u043c\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0432\u043e \u0432\u0441\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/alawar\/blog\/186458\/\"> http:\/\/habrahabr.ru\/company\/alawar\/blog\/186458\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<br \/>  \u0421\u0430\u0439\u0442\u044b Alawar \u2014 \u044d\u0442\u043e \u0441\u0430\u0439\u0442\u044b \u0434\u043b\u044f <a href=\"http:\/\/www.alawar.ru\">\u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e<\/a>, <a href=\"http:\/\/www.alawar.com\">\u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u043e\u0433\u043e<\/a>, \u0435\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u043a\u0438\u0445 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u044b\u043d\u043a\u043e\u0432, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u0434\u043b\u044f mobile-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0441\u0430\u0439\u0442\u044b \u043f\u0430\u0440\u0442\u043d\u0435\u0440\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438 \u0434\u0440. \u0412\u0441\u0435 \u043e\u043d\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0435 Yii, <a href=\"http:\/\/habrahabr.ru\/company\/alawar\/blog\/157877\/\">\u043e \u0447\u0435\u043c \u043c\u044b \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u0431\u043b\u043e\u0433\u0435 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435<\/a>.<br \/>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438 \u043d\u0430\u0448\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432, \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430. \u0410 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0432\u0435\u0434\u0430\u044e, \u043a\u0430\u043a \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u0435\u043f\u043b\u043e\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f\u0445.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-186458","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/186458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=186458"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/186458\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=186458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=186458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=186458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}