Commit d94384861c011df3068e15b2b2e838c991c15810

Authored by Cyril Mougel
1 parent c746513a
Exists in master and in 1 other branch production

Add information about create indexes in README

When you deploy a Errbit instance, it's better to have index. A rake
rake do this job.

Update of README to add this information

Fix #522
Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
@@ -136,7 +136,7 @@ Deploying: @@ -136,7 +136,7 @@ Deploying:
136 * Setup server and deploy 136 * Setup server and deploy
137 137
138 ```bash 138 ```bash
139 -cap deploy:setup deploy 139 +cap deploy:setup deploy db:create_mongoid_indexes
140 ``` 140 ```
141 141
142 (Note: The capistrano deploy script will automatically generate a unique secret token.) 142 (Note: The capistrano deploy script will automatically generate a unique secret token.)
@@ -168,10 +168,12 @@ heroku config:add ERRBIT_EMAIL_FROM=example@example.com @@ -168,10 +168,12 @@ heroku config:add ERRBIT_EMAIL_FROM=example@example.com
168 git push heroku master 168 git push heroku master
169 ``` 169 ```
170 170
171 - * Seed the DB (_NOTE_: No bootstrap task is used on Heroku!) 171 + * Seed the DB (_NOTE_: No bootstrap task is used on Heroku!) and
  172 + create index
172 173
173 ```bash 174 ```bash
174 heroku run rake db:seed 175 heroku run rake db:seed
  176 +heroku run rake db:mongoid:create_indexes
175 ``` 177 ```
176 178
177 * If you are using a free database on Heroku, you may want to periodically clear resolved errors to free up space. 179 * If you are using a free database on Heroku, you may want to periodically clear resolved errors to free up space.