From 927855fec7c42327e12670c10a58e39f9b570e85 Mon Sep 17 00:00:00 2001 From: "Cody B. Daig" Date: Thu, 13 Aug 2015 16:04:17 -0600 Subject: [PATCH] [doc] Add seed user instructions to README --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 681a9871f2..7beb6546b3 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,21 @@ $ grunt prod * explore `config/env/production.js` for production environment configuration options +### Running with User Seed +To have default account(s) seeded at runtime: + +In Development: +```bash +MONGO_SEED=true grunt +``` +It will try to seed the users 'user' and 'admin'. If one of the user already exists, it will display an error message on the console. Just grab the passwords from the console. + +In Production: +```bash +MONGO_SEED=true grunt prod +``` +This will seed the admin user one time if the user does not already exist. You have to copy the password from the console and save it. + ### Running with TLS (SSL) Application will start by default with secure configuration (SSL mode) turned on and listen on port 8443. To run your application in a secure manner you'll need to use OpenSSL and generate a set of self-signed certificates. Unix-based users can use the following command: