{"action":"created","issue":{"url":"https://api.github.com/repos/railsware/caphub/issues/12","labels_url":"https://api.github.com/repos/railsware/caphub/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/railsware/caphub/issues/12/comments","events_url":"https://api.github.com/repos/railsware/caphub/issues/12/events","html_url":"https://github.com/railsware/caphub/issues/12","id":70195937,"number":12,"title":"Different requires for different deploy applications","user":{"login":"Fabs","id":10524,"avatar_url":"https://avatars.githubusercontent.com/u/10524?v=3","gravatar_id":"","url":"https://api.github.com/users/Fabs","html_url":"https://github.com/Fabs","followers_url":"https://api.github.com/users/Fabs/followers","following_url":"https://api.github.com/users/Fabs/following{/other_user}","gists_url":"https://api.github.com/users/Fabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Fabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fabs/subscriptions","organizations_url":"https://api.github.com/users/Fabs/orgs","repos_url":"https://api.github.com/users/Fabs/repos","events_url":"https://api.github.com/users/Fabs/events{/privacy}","received_events_url":"https://api.github.com/users/Fabs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-22T18:08:58Z","updated_at":"2015-08-06T08:50:43Z","closed_at":null,"body":"I am using caphub to deploy one angular.js app and another rails app after i set up my machine with chef. \r\n\r\nMy problem is that the require 'capistrano/bundle' for instance makes my angular.js fail because there are no Gemfile. So I need to require different recipes deppending on the application. \r\n\r\nMy solution so far is:\r\n\r\n```\r\nif ARGV[0].split(':')[0] == 'api'\r\n  require 'capistrano/bundler'\r\n  require 'capistrano/rails'\r\n  require 'capistrano/rails/migrations'\r\n  require 'capistrano/puma'\r\n  require 'capistrano/puma/workers'\r\n  require 'capistrano/puma/jungle'\r\n  require 'capistrano/puma/monit'\r\n  require 'capistrano/puma/nginx'\r\nelsif ARGV[0].split(':')[0] == 'web'\r\n\r\nend\r\n```\r\n\r\nAny better ideas? \r\n\r\nIf I put the requires inside the api/production.rb for example, I got other sort of weird errors. "},"comment":{"url":"https://api.github.com/repos/railsware/caphub/issues/comments/128294675","html_url":"https://github.com/railsware/caphub/issues/12#issuecomment-128294675","issue_url":"https://api.github.com/repos/railsware/caphub/issues/12","id":128294675,"user":{"login":"le0pard","id":98444,"avatar_url":"https://avatars.githubusercontent.com/u/98444?v=3","gravatar_id":"","url":"https://api.github.com/users/le0pard","html_url":"https://github.com/le0pard","followers_url":"https://api.github.com/users/le0pard/followers","following_url":"https://api.github.com/users/le0pard/following{/other_user}","gists_url":"https://api.github.com/users/le0pard/gists{/gist_id}","starred_url":"https://api.github.com/users/le0pard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/le0pard/subscriptions","organizations_url":"https://api.github.com/users/le0pard/orgs","repos_url":"https://api.github.com/users/le0pard/repos","events_url":"https://api.github.com/users/le0pard/events{/privacy}","received_events_url":"https://api.github.com/users/le0pard/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T08:50:43Z","updated_at":"2015-08-06T08:50:43Z","body":"@vnazarenko\r\n\r\n```ruby\r\nset :migration_role, []\r\nset :assets_roles, []\r\n```\r\n\r\nFor rails to prevent hooks. Need some bad plugin for such example."}}