{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudstrap/docs/issues/39","repository_url":"https://api.github.com/repos/cloudstrap/docs","labels_url":"https://api.github.com/repos/cloudstrap/docs/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/cloudstrap/docs/issues/39/comments","events_url":"https://api.github.com/repos/cloudstrap/docs/issues/39/events","html_url":"https://github.com/cloudstrap/docs/issues/39","id":108535819,"number":39,"title":"Проблем с .openshift/action_hooks/deploy","user":{"login":"iushev","id":3023174,"avatar_url":"https://avatars.githubusercontent.com/u/3023174?v=3","gravatar_id":"","url":"https://api.github.com/users/iushev","html_url":"https://github.com/iushev","followers_url":"https://api.github.com/users/iushev/followers","following_url":"https://api.github.com/users/iushev/following{/other_user}","gists_url":"https://api.github.com/users/iushev/gists{/gist_id}","starred_url":"https://api.github.com/users/iushev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iushev/subscriptions","organizations_url":"https://api.github.com/users/iushev/orgs","repos_url":"https://api.github.com/users/iushev/repos","events_url":"https://api.github.com/users/iushev/events{/privacy}","received_events_url":"https://api.github.com/users/iushev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-09-27T13:43:47Z","updated_at":"2016-09-28T14:00:47Z","closed_at":"2016-09-28T14:00:47Z","body":"Изпълних това\r\n```\r\nchmod +x .openshift/action_hooks/deploy\r\n```\r\nно след като качих промените ```deploy``` файла нямаше права за изпълнение.\r\nТук [https://docs.openshift.org/origin-m4/oo_user_guide.html#the-openshift-directory](https://docs.openshift.org/origin-m4/oo_user_guide.html#the-openshift-directory) намерих решението:\r\n```\r\ngit update-index --chmod=+x .openshift/action_hooks/deploy\r\n```\r\nСега обаче има труг проблем: При ```git push``` дава следната грешка:\r\n```\r\nCounting objects: 10, done.\r\nDelta compression using up to 8 threads.\r\nCompressing objects: 100% (4/4), done.\r\nWriting objects: 100% (4/4), 397 bytes | 0 bytes/s, done.\r\nTotal 4 (delta 2), reused 0 (delta 0)\r\nremote: Stopping PHP 5.4 cartridge (Apache+mod_php)\r\nremote: Waiting for stop to finish\r\nremote: Waiting for stop to finish\r\nremote: Stopping Postgres cartridge\r\nremote: Building git ref 'master', commit b797e4c\r\nremote: It appears you have a deplist.txt and .openshift/pear.txt file.\r\nremote: Please consider running `git rm deplist.txt'.\r\nremote: Checking .openshift/pear.txt for PEAR dependency...\r\nremote: Preparing build for deployment\r\nremote: Deployment id is 2a79fc75\r\nremote: Activating deployment\r\nremote: Starting Postgres cartridge\r\nremote: Postgres started\r\nremote: -------------------------\r\nremote: Git Post-Receive Result: failure\r\nremote: Activation status: failure\r\nremote: Activation failed for the following gears:\r\nremote: 55b78486ba7eeade55000002 (Error activating gear: No such file or directory - /var/lib/openshift/55b78486ba7eeade55000002/app-root/runtime/repo/.openshift/action_hooks/deploy)\r\nremote: Deployment completed with status: failure\r\nremote: postreceive failed\r\nTo ssh://55b78486ba7eeade55000002@crmdev-arisapp.sapp.io/~/git/crmdev.git/\r\n   0a86fb4..b797e4c  crmdev -> master\r\n```\r\nСъдържанието на ```deploy``` файла съм взел от тук [http://docs.startapp.bg/getting-started/startapp-with-php.html#add-composer](http://docs.startapp.bg/getting-started/startapp-with-php.html#add-composer)."}}
{"actor":{"display_login":"iushev"}}