Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the documentation on using the command line interface #355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/Documentation/Using-the-command-line-interface.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,13 @@ Commands run in the full Orchard environment and can query the database, inject
## Throwing Exceptions From Commands

Throwing from a command handler is not recommended. Instead, whenever possible, write to the context output and return. If you do want to throw a generic exception, you should throw an OrchardException.

## Run the command to specify target instances for MultiTenancy

Depend on DataConnectionString in the Settings.txt of Default folder.


DataConnectionString: Server=127.0.0.1;Port=5432;Database=Orchard;User Id=xxx;Password=xxx


Change the database name and run Orchard.exe