Among applying the changes in the other files in this gist, you need to symlink the directory you are serving the app with in the root app's public directory so that NGINX can serve the static files in the sub-app.
For example, if you have an app at /home/coffeencoke/apps/app.coffeencoke.com/current/public
as your root app, and you have the sub app served at http://app.coffeencoke.com/admin, then you need to symlink /home/coffeencoke/apps/admin-app.coffeencoke.com/current/public
to /home/coffeencoke/apps/app.coffeencoke.com/current/public/admin
like so:
ln -s /home/coffeencoke/apps/admin-app.coffeencoke.com/current/public /home/coffeencoke/apps/app.coffeencoke.com/current/public/admin
Also...
Issue when deploying a fresh environment and running deploy:cold you may get an error that says "cannot stat /....manifest.yml" Added an issue in github: capistrano/capistrano#379 Work around is to manually run the rake assets precompile method in app/shared/cached-copy and move the assets/admin/manifest.yml file to /app/shared/assets/manifest.yml
$ cap ui deploy:setup deploy:cold # this will fail, but will setup our files for us
$ ssh [email protected]
$ cd ~/apps/admin-app.coffeencoke.com/shared/cached-copy
$ bundle install --without test development
$ bundle exec rake RAILS_ENV=qa RAILS_GROUPS=assets assets:precompile
$ cp -- public/admin/assets/manifest.yml ../assets/
$ exit
$ cap ui deploy:cold
is it possible to make short video tutorial about this ?