forked from calagator/calagator
-
Notifications
You must be signed in to change notification settings - Fork 7
Administrative Tasks
techieshark edited this page May 28, 2012
·
3 revisions
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.
We're using LESS in themes/activate/stylesheets. After making changes to the LESS files, run rake less
to recompile.
rake db:migrate RAILS_ENV="production"