Deploying discourse on server already running another rails app

Thanks! I will have a look into this. One remark: my server is only accessible via IP number, so I would like to deploy discourse into a subfolder. Do you think this setup will work with reverse proxy apache module?