{"action":"created","issue":{"url":"https://api.github.com/repos/jedireza/drywall/issues/305","labels_url":"https://api.github.com/repos/jedireza/drywall/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/jedireza/drywall/issues/305/comments","events_url":"https://api.github.com/repos/jedireza/drywall/issues/305/events","html_url":"https://github.com/jedireza/drywall/issues/305","id":91288343,"number":305,"title":"integrate another app into drywall","user":{"login":"jskye","id":704639,"avatar_url":"https://avatars.githubusercontent.com/u/704639?v=3","gravatar_id":"","url":"https://api.github.com/users/jskye","html_url":"https://github.com/jskye","followers_url":"https://api.github.com/users/jskye/followers","following_url":"https://api.github.com/users/jskye/following{/other_user}","gists_url":"https://api.github.com/users/jskye/gists{/gist_id}","starred_url":"https://api.github.com/users/jskye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jskye/subscriptions","organizations_url":"https://api.github.com/users/jskye/orgs","repos_url":"https://api.github.com/users/jskye/repos","events_url":"https://api.github.com/users/jskye/events{/privacy}","received_events_url":"https://api.github.com/users/jskye/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-26T16:06:43Z","updated_at":"2015-06-27T01:25:33Z","closed_at":"2015-06-26T20:31:58Z","body":"im abit confused about how to integrate another app into drywall.\r\ni thought the easiest way would be to try vhosts on diff subdomains. \r\nbut im unsure exactly how to do this and was wondering if i could get any tips. ive tried [here](https://github.com/jskye/drywall/tree/vhost-login).\r\n\r\n```\r\nvhost = require('vhost');\r\nvar loginapp = exports.app = express();\r\n//vhosts\r\nloginapp.use(vhost('www.website.com', app)); // Serves top level domain via Main server app\r\nloginapp.use(vhost('login.website.com', require('./pollsapp/app.js').app)); // Serves login subdomain via Redirect app\r\n\r\n//listen up\r\nloginapp.server.listen(app.config.port, function(){\r\n  //and... we're live\r\n  console.log('Server is running on port ' + config.port);\r\n});\r\n```\r\n\r\n`Error: .get() requires callback functions but got a [object Undefined]`\r\n"},"comment":{"url":"https://api.github.com/repos/jedireza/drywall/issues/comments/115933771","html_url":"https://github.com/jedireza/drywall/issues/305#issuecomment-115933771","issue_url":"https://api.github.com/repos/jedireza/drywall/issues/305","id":115933771,"user":{"login":"jskye","id":704639,"avatar_url":"https://avatars.githubusercontent.com/u/704639?v=3","gravatar_id":"","url":"https://api.github.com/users/jskye","html_url":"https://github.com/jskye","followers_url":"https://api.github.com/users/jskye/followers","following_url":"https://api.github.com/users/jskye/following{/other_user}","gists_url":"https://api.github.com/users/jskye/gists{/gist_id}","starred_url":"https://api.github.com/users/jskye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jskye/subscriptions","organizations_url":"https://api.github.com/users/jskye/orgs","repos_url":"https://api.github.com/users/jskye/repos","events_url":"https://api.github.com/users/jskye/events{/privacy}","received_events_url":"https://api.github.com/users/jskye/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T01:25:33Z","updated_at":"2015-06-27T01:25:33Z","body":"i have another MEAN app that should be the landing when the user is logged in. i was hoping to integrate the app in with the user management of drywall. this seemed to be a headache if i was trying to merge them in together (even if i wasnt a MEAN n00b). so i thought i could just use them on separate subdomains using the [vhost method](http://stackoverflow.com/questions/6866751/how-to-combine-two-node-js-app-server-together). But i guess i need to build a better understanding of the node server because im getting an error where callbacks are not found."}}