forked from bborn/communityengine
-
Notifications
You must be signed in to change notification settings - Fork 0
fritzek edited this page Sep 12, 2010
·
17 revisions
-
How do I create an administrator account?
Administrator privileges are assigned through the database. First, create a user (sign up for an account), then, you’ll have to alter that user’s database record so that the column ‘admin’ is set to ‘1’. -
How to I add countries and metro areas, or states?
Log in as an administrator, then go to /countries, /metro_areas, or /states to manage the respective object. To add in bulk, directly to the database, you’ll probably want to use a migration. For example: 014_add_states.rb. -
How do I write a post in the forum?
First, you’ll have to create a forum (only an administrator can do that). Log in as an administrator, then go to /forums and you’ll see a link to create a new forum. -
In development mode, I don’t receive a confirmation e-mail when signing up.
You probably need to set your ActionMailer delivery method to sendmail:#in development.rb
ActionMailer::Base.delivery_method = :sendmail - How do I manage CE’s migrations?
To migrate your application to CE’s latest version, use:script/generate plugin_migration
If there are new CE migrations that you haven’t applied yet, CE will warn you when you start your server, or run tests. - How do I manage CE’s migrations and deploy them with capistrano?
Normaly the best would be to run the script/generate plugin_migration during deloyment process. But there is a problem: the generator will work with RAILS_ENV=development by default. A deployment to production will try to generate the plugin_migrations under development.
So run the plugin_migrations before you deploy, check them in to your SCM and call deploy:migrations. This will update your code base and run the new migrations.