{"id":274491,"date":"2016-02-18T01:55:03","date_gmt":"2016-02-17T22:55:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=274491"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=274491","title":{"rendered":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c OpenShift (\u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f)"},"content":{"rendered":"<br \/>\n<h2>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0437\u0432\u0438\u043d\u044e\u0441\u044c, <a href=\"https:\/\/habrahabr.ru\/post\/275605\/\">\u0442\u0443\u0442<\/a> \u043c\u0430\u043b\u043e\u0441\u0442\u044c \u0441\u044b\u0440\u043e, \u0445\u043e\u0442\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 &quot;\u0432\u043b\u0435\u0442&quot;, \u043d\u043e \u0431\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0431\u044b\u043b \u043e\u043f\u0438\u0441\u0430\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 $OPENSHIFT_REPO_DIR (~\/app-root\/repo) \u0438 \u0412\u044b \u0432 \u0441\u0432\u043e\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0438\u043c\u0435\u0435\u0442\u0435 \u043a\u043e\u043f\u0438\u044e, \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043f\u0440\u0430\u0432\u043a\u0438, OpenShift \u2014 \u044d\u0442\u043e \u0412\u0430\u0448\u0430 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430.<br \/>  \u041d\u043e \u0435\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 &quot;\u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438&quot;. \u041e\u043d \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u043d\u043e \u0431\u0435\u0437 \u0434\u0435\u0442\u0430\u043b\u0435\u0439. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0412\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 $OPENSHIFT_DATA_DIR (~\/app-root\/data). \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u0447\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b (action_hooks, \u0441\u043c. \u043d\u0438\u0436\u0435) \u0438 \u0444\u0430\u0439\u043b\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0430\u0442\u0447\u0438, etc. \u041d\u043e \u043d\u0435 \u0441\u0430\u043c\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u0438\u043a\u043e\u043c. <\/p>\n<p>  \u041c\u0438\u043d\u0438-\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u0440\u044f\u0434 \u043f\u0440\u0438\u0435\u043c\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 OpenShift. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 github.com, git \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435. <\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 OpenShift \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0438.<\/li>\n<li>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0433\u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0430.<\/li>\n<li>\u0417\u0430\u043f\u0438\u0441\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043d\u0430 github.com (\u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f). <\/li>\n<li>\u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 OpenShift.<\/li>\n<\/ol>\n<p>  \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e &quot;step-by-step&quot;, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435. <a name=\"habracut\"><\/a><\/p>\n<h2>\u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c<\/h2>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 PaaS-\u0445\u043e\u0441\u0442\u0438\u043d\u0433(\u0442\u043e\u0442 \u0436\u0435 <a href=\"http:\/\/openshift.redhat.com\">Redhat Openshift<\/a>) \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0435\u0433\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439:<\/p>\n<p>  \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f: <a href=\"https:\/\/www.openshift.com\/app\/account\/new\">\u0437\u0434\u0435\u0441\u044c<\/a><br \/>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430: <a href=\"https:\/\/developers.openshift.com\/en\/getting-started-overview.html\">\u0437\u0434\u0435\u0441\u044c (\u0412\u044b \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b), \u0442\u0430\u043c \u0436\u0435 \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u043d\u043e \u043d\u0430 \u0432\u0441\u044f English<\/a><br \/>  \u041d\u0435 \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0439\u0442\u0435\u0441\u044c \u043e\u0431 \u041e\u0421 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0447\u0442\u0438 \u0432\u0435\u0437\u0434\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e. \u0414\u0430 \u0438 \u0412\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u0430\u043a \u043d\u0438 \u043a\u0440\u0443\u0442\u0438 \u043f\u043e\u0434 RHEL 6.7.<br \/>  \u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0430\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u043e\u043c\u0435\u043d (\u044d\u0442\u043e \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d 3-\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f, \u0432\u0430\u0448\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0430\u0434\u0440\u0435\u0441 <a href=\"http:\/\/myapp-mydom.rhcloud.com\">http:\/\/myapp-mydom.rhcloud.com<\/a>).<\/p>\n<p>  Openshift \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0412\u0430\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432: <a href=\"https:\/\/habrahabr.ru\/post\/275605\/\">\u0442\u0443\u0442<\/a>. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0434\u0432\u0438\u0436\u043a\u0430 \u2014 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u041f\u041e \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442 root. \u0412\u0430\u0448\u0435 \u0438\u043c\u044f \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0442\u0430\u043a\u0430\u044f \u0446\u0438\u0444\u0438\u0440\u044c \u0442\u0438\u043f\u0430 \u0445\u044d\u0448\u0430 (\u043e\u0447\u0435\u043d\u044c <a href=\"https:\/\/www.docker.com\/\">docker<\/a> \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442) .<\/p>\n<p>  \u0412\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0430 OPENSHIFT_, <a href=\"https:\/\/developers.openshift.com\/en\/managing-environment-variables.html\">\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a<\/a>.<\/p>\n<h2>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c<\/h2>\n<p>  <em>\u041c\u044b \u0443\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438<\/em><\/p>\n<ul>\n<li>\u0421\u043e\u0437\u0434\u0430\u043b\u0438 \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 <a href=\"https:\/\/openshift.redhat.com\">https:\/\/openshift.redhat.com<\/a><\/li>\n<li>\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 git, ruby, rhc.<\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438<br \/>  <code>$rhc setup<\/code><br \/>  \u0418 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0438 \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u0411\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d \u043e\u0431\u043c\u0435\u043d \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0438 \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043a \u0434\u043e\u043c\u0435\u043d\u0443 OpenShift. <\/li>\n<\/ul>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f:<\/p>\n<blockquote><p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 SalesPlatform-6.4.0, \u0441\u0430\u043c\u043e\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0449\u0438\u0439\u0441\u044f LAMP.<br \/>  \u0421\u0438\u0441\u0442\u0435\u043c\u0430 CentOS 7.2 (\u043d\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445).<br \/>  \u043c\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 example, \u0412\u0430\u0448\u0435 \u2014 \u043d\u0430 \u0412\u0430\u0448\u0435 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435. (\u0412 \u0438\u043c\u0435\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u0435 \u0431\u0443\u043a\u0432\u044b \u0438 \u0446\u0438\u0444\u0440\u044b).<br \/>  \u043c\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0430 github.com <a href=\"https:\/\/github.com\/zirf0\/example\">https:\/\/github.com\/zirf0\/example<\/a>, \u043f\u043e\u0434\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e.<\/p><\/blockquote>\n<p>  <\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u043c &quot;\u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0443&quot; \u0438 \u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c \u0435\u0435 \u0432 \u0441\u0432\u043e\u0439 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433.<br \/>  <code>$rhc app create example php-5.3 mysql-5.5<\/code><br \/>  <code>$cd example<\/code>\n<\/li>\n<li>\u0421\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 Openshift<br \/>  $ tree .openshift\/<br \/>  .openshift\/<br \/>  \u251c\u2500\u2500 action_hooks<br \/>  \u2502\u00a0\u00a0 \u2514\u2500\u2500 README.md<br \/>  \u251c\u2500\u2500 cron<br \/>  \u2502\u00a0\u00a0\u2026<br \/>  \u251c\u2500\u2500 markers<br \/>  \u2502\u00a0\u00a0 \u2514\u2500\u2500 README.md<br \/>  \u251c\u2500\u2500 pear.txt<br \/>  \u2514\u2500\u2500 README.md<\/li>\n<\/ol>\n<p>  \u0421\u0442\u0440\u043e\u0433\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 <a href=\"https:\/\/developers.openshift.com\/en\/managing-action-hooks.html\">action_hooks<\/a>. \u042d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439, \u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e <em>build<\/em> \u0438 <em>deploy<\/em>, \u0432\u043e\u043e\u0431\u0449\u0435 \u0438\u043c\u0435\u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u043c\u0443 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044e. \u0411\u0443\u0434\u0435\u043c \u0440\u0435\u0448\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443:<\/p>\n<ol>\n<li>\u0412\u044b\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043d\u0430 PaaS-\u0445\u043e\u0441\u0442\u0438\u043d\u0433.<\/li>\n<li>\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0438\u0445 \u0432 ~\/app-root\/data\/current<\/li>\n<li>\u0412\u043d\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f (\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0421\u0423\u0411\u0414 \u043d\u0430 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 OpenShift).<\/li>\n<li>\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.\n<\/li>\n<li>\u041d\u0430\u0447\u043d\u0435\u043c<\/li>\n<\/ol>\n<p>  <code>$ vi .openshift\/action_hooks\/build<\/code><\/p>\n<p>  \u0418 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c \u0442\u0443\u0434\u0430<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">build &#8212; \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/b><\/p>\n<div class=\"spoiler_text\"><code>#!\/bin\/bash<\/code><br \/>  <code># \u0432 ~\/app-root\/data \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433 current<\/code><br \/>  <code>#<\/code><br \/>  <code>current_version_dir=${OPENSHIFT_DATA_DIR}current<\/code><br \/>  <code># \u0415\u0441\u043b\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0432\u044b\u0445\u043e\u0434\u0438\u043c.<\/code><br \/>  <code>[ -d &quot;${current_version_dir}&quot; ] &amp;&amp; exit 0<\/code><br \/>  <code># \u0412\u0435\u0440\u0441\u0438\u044f \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/code><br \/>  <code>install_version='6.4.0-201512'<\/code><br \/>  <code># \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438.<\/code><br \/>  <code>install_dir=${OPENSHIFT_BUILD_DEPENDENCIES_DIR}${install_version}<\/code><br \/>  <code>mkdir -p $install_dir<\/code><br \/>  <code># \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e<\/code><br \/>  <code>pushd ${install_dir} &gt;\/dev\/null<\/code><br \/>  <code># \u0412\u044b\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442 (\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0439).<\/code><br \/>  <code>curl -Ls downloads.sourceforge.net\/project\/salesplatform\/salesplatform-vtigercrm-${install_version}.tar.gz &gt; salesplatform-vtigercrm-${install_version}.tar.gz<\/code><br \/>  <code># \u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432<\/code><br \/>  <code>tar --strip-components=1 -xzf salesplatform-vtigercrm-${install_version}.tar.gz<\/code><br \/>  <code># \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0430\u0440\u0445\u0438\u0432, \u043e\u043d \u0443\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d.<\/code><br \/>  <code>rm -rf salesplatform-vtigercrm-${install_version}.tar.gz<\/code><br \/>  <code># \u0414\u043b\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/code><br \/>  <code>echo $install_version &gt; ${OPENSHIFT_BUILD_DEPENDENCIES_DIR}.current_version<\/code><br \/>  <code># \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433.<\/code><br \/>  <code>popd &gt;\/dev\/null<\/code><\/p><\/div>\n<\/div>\n<p>  <code>$ vi .openshift\/action_hooks\/deploy<\/code><\/p>\n<p>  \u0412 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0430\u0442\u0447 (\u0442\u0430 \u0441\u0430\u043c\u0430\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0421\u0423\u0411\u0414 MySQL) \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0439 .htaccess. \u0423 \u0432\u0430\u0441 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u043e\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u043e\u0437\u044c\u043c\u0438\u0442\u0435 <a href=\"https:\/\/github.com\/zirf0\/example\/tree\/master\/.openshift\/config\">\u0433\u043e\u0442\u043e\u0432\u044b\u0435<\/a>. <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">deploy &#8212; \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\"><code>#!\/bin\/bash<\/code><br \/>  <code># This deploy hook gets executed after dependencies are resolved and the<\/code><br \/>  <code># build hook has been run but before the application has been started back<\/code><br \/>  <code># up again. This script gets executed directly, so it could be python, php,<\/code><br \/>  <code># ruby, etc.<\/code><br \/>  <code>dest_dir=${OPENSHIFT_DATA_DIR}current<\/code><br \/>  <code>current_version=$(cat ${OPENSHIFT_BUILD_DEPENDENCIES_DIR}.current_version)<\/code><br \/>  <code>install_dir=${OPENSHIFT_BUILD_DEPENDENCIES_DIR}${current_version}<\/code><br \/>  <code>if [ ! -d &quot;${dest_dir}&quot; ]; then<\/code><br \/>  <code>mkdir -p $dest_dir<\/code><br \/>  <code>cp -rf ${install_dir}\/* ${dest_dir}\/<\/code><br \/>  <code>fi<\/code><br \/>  <code># \u0420\u043e\u0434\u043d\u043e\u0439 ~\/app-root\/repo\/php \u0443\u0434\u0430\u043b\u044f\u0435\u043c (\u044d\u0442\u043e \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 php) \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0432\u043e\u0435\u0439.<\/code><br \/>  <code>if [ -d ${OPENSHIFT_REPO_DIR}php ]; then<\/code><br \/>  <code>rm -rf ${OPENSHIFT_REPO_DIR}php<\/code><br \/>  <code>fi<\/code><br \/>  <code>ln -sf ${dest_dir} ${OPENSHIFT_REPO_DIR}php<\/code><br \/>  <code># \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 .htaccess \u0438\u0437 .openshift\/config<\/code><br \/>  <code>if [ -f ${OPENSHIFT_REPO_DIR}.openshift\/config\/.htaccess ]; then<\/code><br \/>  <code>cp -f ${OPENSHIFT_REPO_DIR}.openshift\/config\/.htaccess ${dest_dir}\/.htaccess<\/code><br \/>  <code>fi<\/code><br \/>  <code>set -e<\/code><br \/>  <code># \u041f\u0430\u0442\u0447. \u041a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0421\u0423\u0411\u0414<\/code><br \/>  <code>patch ${dest_dir}\/modules\/Install\/views\/Index.php ${OPENSHIFT_REPO_DIR}.openshift\/config\/patches\/db_conf.patch<\/code><\/p><\/div>\n<\/div>\n<p>  \u0418\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0430 github.com.<br \/>  \u0412 \u043d\u0430\u0448\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435:<br \/>  <code>$git rm index.php<\/code><br \/>  <code>$vi README.md<\/code><br \/>  \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0444\u0430\u0439\u043b \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c, \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0445\u0443\u0436\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0433\u0434\u0435 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0432\u0438\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0434\u044b\u0440\u043a\u0430 \u043e\u0442 \u0431\u0443\u0431\u043b\u0438\u043a\u0430.<br \/>  <code>git add .<\/code><br \/>  <code>git commit -m &quot;Initialize&quot;<\/code><br \/>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c github.com \u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u043c (\u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e URL \u0431\u0443\u0434\u0435\u0442 \u0412\u0430\u0448):<br \/>  <code>$git remote add upstream ssh:\/\/git@github.com\/zirf0\/example.git<\/code><br \/>  \u041a\u043b\u044e\u0447 ssh \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c ~\/.ssh\/id_rsa.pub. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e <a href=\"https:\/\/help.github.com\/articles\/adding-a-new-ssh-key-to-your-github-account\/\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a> \u043d\u0430 github.com.<\/p>\n<p>  \u0417\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u0442\u0440\u0443\u0434\u044b \u043d\u0430 github.com<br \/>  <code>$git push upstream master<\/code><\/p>\n<p>  \u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 PaaS Openshift:<br \/>  <code>$git push<\/code><br \/>  \u0427\u0442\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e <em>$git push origin master<\/em>.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435<\/b><\/p>\n<div class=\"spoiler_text\"><code>Counting objects: 5, done.<\/code><br \/>  <code>Delta compression using up to 4 threads.<\/code><br \/>  <code>Compressing objects: 100% (3\/3), done.<\/code><br \/>  <code>Writing objects: 100% (3\/3), 339 bytes | 0 bytes\/s, done.<\/code><br \/>  <code>Total 3 (delta 1), reused 0 (delta 0)<\/code><br \/>  <code>remote: Stopping PHP 5.3 cartridge (Apache+mod_php)<\/code><br \/>  <code>remote: Stopping MySQL 5.5 cartridge<\/code><br \/>  <code>remote: Building git ref 'master', commit 38fe1a5<\/code><br \/>  <code>remote: Checking .openshift\/pear.txt for PEAR dependency...<\/code><br \/>  <code>remote: Preparing build for deployment<\/code><br \/>  <code>remote: Deployment id is b4269d37<\/code><br \/>  <code>remote: Activating deployment<\/code><br \/>  <code>remote: Starting MySQL 5.5 cartridge<\/code><br \/>  <code>remote: patching file \/var\/lib\/openshift\/56c4641789f5cfbebb000031\/app-root\/data\/current\/modules\/Install\/views\/Index.php<\/code><br \/>  <code>remote: Hunk #1 succeeded at 98 with fuzz 1.<\/code><br \/>  <code>remote: Starting PHP 5.3 cartridge (Apache+mod_php)<\/code><br \/>  <code>remote: Application directory &quot;php\/&quot; selected as DocumentRoot<\/code><br \/>  <code>remote: -------------------------<\/code><br \/>  <code>remote: Git Post-Receive Result: success<\/code><br \/>  <code>remote: Activation status: success<\/code><br \/>  <code>remote: Deployment completed with status: success<\/code><br \/>  <code>To ssh:\/\/56c4641789f5cfbebb000031@example-helidon.rhcloud.com\/~\/git\/example.git\/<\/code><br \/>  <code>f5b094a..38fe1a5 master -&gt; master<\/code><\/p><\/div>\n<\/div>\n<p>  \u0412\u0441\u0435, \u0447\u0435\u0440\u0435\u0437 web \u0434\u043e\u043b\u0436\u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430.<\/p>\n<p>  <strong> \u041f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f?<\/strong>                 <\/p>\n<div class=\"clear\"><\/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=\"https:\/\/habrahabr.ru\/post\/277445\/\"> https:\/\/habrahabr.ru\/post\/277445\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h2>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0437\u0432\u0438\u043d\u044e\u0441\u044c, <a href=\"https:\/\/habrahabr.ru\/post\/275605\/\">\u0442\u0443\u0442<\/a> \u043c\u0430\u043b\u043e\u0441\u0442\u044c \u0441\u044b\u0440\u043e, \u0445\u043e\u0442\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 &quot;\u0432\u043b\u0435\u0442&quot;, \u043d\u043e \u0431\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0431\u044b\u043b \u043e\u043f\u0438\u0441\u0430\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 $OPENSHIFT_REPO_DIR (~\/app-root\/repo) \u0438 \u0412\u044b \u0432 \u0441\u0432\u043e\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0438\u043c\u0435\u0435\u0442\u0435 \u043a\u043e\u043f\u0438\u044e, \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043f\u0440\u0430\u0432\u043a\u0438, OpenShift \u2014 \u044d\u0442\u043e \u0412\u0430\u0448\u0430 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430.<br \/>  \u041d\u043e \u0435\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 &quot;\u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438&quot;. \u041e\u043d \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u043d\u043e \u0431\u0435\u0437 \u0434\u0435\u0442\u0430\u043b\u0435\u0439. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0412\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 $OPENSHIFT_DATA_DIR (~\/app-root\/data). \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u0447\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b (action_hooks, \u0441\u043c. \u043d\u0438\u0436\u0435) \u0438 \u0444\u0430\u0439\u043b\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0430\u0442\u0447\u0438, etc. \u041d\u043e \u043d\u0435 \u0441\u0430\u043c\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u0438\u043a\u043e\u043c. <\/p>\n<p>  \u041c\u0438\u043d\u0438-\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u0440\u044f\u0434 \u043f\u0440\u0438\u0435\u043c\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 OpenShift. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 github.com, git \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435. <\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 OpenShift \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0438.<\/li>\n<li>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0433\u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0430.<\/li>\n<li>\u0417\u0430\u043f\u0438\u0441\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043d\u0430 github.com (\u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f). <\/li>\n<li>\u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 OpenShift.<\/li>\n<\/ol>\n<p>  \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e &quot;step-by-step&quot;, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435. <\/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-274491","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274491","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=274491"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274491\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}