Administrative Tasks - activate/ActivateHub GitHub Wiki
Cleaning up
Removing topics and tags
Log into the production server, and cd to the directory containing the app instance you are working with.
eric@ankh:/home/activate/stage$ RAILS_ENV=production rails console
> Topic.find_by_name('test')
=> #<Topic id: 20, name: "test", created_at: "2011-12-26 21:12:34", updated_at: "2011-12-26 21:12:34">
> Topic.find_by_name('test').delete
=> #<Topic id: 20, name: "test", created_at: "2011-12-26 21:12:34", updated_at: "2011-12-26 21:12:34">
> Topic.find_by_name('test')
=> nil
Associated events will become unassociated, but won't be deleted.
Updating CSS
We're using LESS in themes/activate/stylesheets. After making changes to the LESS files, run rake less
to recompile.
Database migration on Ankh:
rake db:migrate RAILS_ENV="production"