README.md in labdb_manager-0.0.1 vs README.md in labdb_manager-0.0.2

- old
+ new

@@ -1,25 +1,39 @@ # LabdbManager -TODO: Write a gem description +Command line utility scripts for helping to manage a labdb installation. Intended to replace the manage.py script in that repository. ## Installation -Add this line to your application's Gemfile: + $ gem install labdb_manager - gem 'labdb_manager' +## Usage -And then execute: +The gem will install a binary `labdb` that takes command line options for various management tasks. Prefix most commands with a --dry-run to show the commands that would be run but not actually run them. This does not work for hostname or secret. - $ bundle +Usage: `labdb [--dry-run] <command>` -Or install it yourself as: +Several of the commands assume that they're being run from the root of the labdb installation. - $ gem install labdb_manager +Command should be one of: -## Usage +- `update`: Updates the labdb installation to the latest stable (master branch) commit. Makes a backup before doing this. Precompiles assets after updating. -TODO: Write usage instructions here +- `backup`: Dumps the postgres database to a timestamped backup file. + +- `hostname`: optionally, supply a hostname on the command line. If not provided, prompt the user for it. After requsting or reading from the command line, install into the appropriate file for use by the application. + +- `secret`: generate a secure application secret (used for cookie signing) and install it into the appropriate location for use by the application. The umask will be set to 0600. Don't share the secret! + +- `install`: create the database for production mode (kind of a misnomer at this point since it's not the complete install process...) + +- `revert_failure`: if the update fails due to a merge conflict, running this command should bring you back to the last stable state. + +- `devserver`: starts the server locally + +- `force_update_deps`: updates all dependencies to the latest allowed versions. It's possible that this could break things. + +- `restart`: restart an installation running under control of supervisord. ## Contributing 1. Fork it ( https://github.com/[my-github-username]/labdb_manager/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`)