This repository was archived by the owner on Mar 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ Contributors
3434* Nick Fagerlund <nick.fagerlund@gmail.com >
3535* Nick Lewis < nick@puppetlabs.com >
3636* Nigel Kersten < nigel@puppetlabs.com >
37+ * Pascal Vibet <p.vibet@gmail.com >
3738* Patrick Carlisle < patrick@puppetlabs.com >
3839* Paul Berry < paul@puppetlabs.com >
3940* Peter Meier <peter.meier@immerda.ch >
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ bundle install --deployment
7373````
7474* You need to create a secret for production and either set it via environment variable:
7575 ` export SECRET_KEY_BASE=$(bundle exec rails secret) `
76- or follow the instructions in config/secrets.yml to setup an encrypted secret.
76+ or follow the instructions in config/secrets.yml to setup an encrypted secret.
7777* Setup database and pre-compile assets
7878````
7979RAILS_ENV=production bundle exec rake db:setup && \
@@ -96,9 +96,17 @@ precompile assets for production using:
9696
9797 * ` SECRET_KEY_BASE=none RAILS_ENV=production bundle exec rails assets:precompile `
9898
99+ Dashboard will keep all reports in the database. If your infrastructure is big the database will
100+ eventually become very large (more than 50GB). To periodically purge old reports (~ once per day)
101+ and optimize the database tables (~ once per month) it is recommended to run the following tasks
102+ periodically:
103+
104+ * ` SECRET_KEY_BASE=none RAILS_ENV=production bundle exec rails reports:prune upto=20 unit=day `
105+ * ` SECRET_KEY_BASE=none RAILS_ENV=production bundle exec rails db:raw:optimize `
106+
99107Contributing
100108------------
101109
102- To contribute to this project, please read [ CONTRIBUTING] ( CONTRIBUTING.md ) .
103- A list of contributors is found in [ CONTRIBUTORS] ( CONTRIBUTORS.md ) . Thanks!
110+ To contribute to this project, please read [ CONTRIBUTING] ( CONTRIBUTING.md ) .
111+ A list of contributors is found in [ CONTRIBUTORS] ( CONTRIBUTORS.md ) . Thanks!
104112This project uses the [ Silk icons] ( http://www.famfamfam.com/lab/icons/silk/ ) by Mark James. Thank you!
You can’t perform that action at this time.
0 commit comments