Removing an application completely from the server

There is no gem command to remove an application at the moment - so as to prevent accidental database drops.

However you can follow this procedure to get rid of an application deployed with the gem

  1. Remove the database by running
    RAILS_ENV=production rake db:drop

    from the current release directory.

  2. Remove the application directory in /home/rails
  3. Run
    find /etc -name 'rails-{yourappname}*' -print

    and remove the files found corresponding to your application.

  4. reload monit with
    cap deploy:monit:reload
  5. reload the web server with
    cap deploy:web:reload
docs/gemv2/deleting.txt · Last modified: 2008/08/22 10:20 by neilw