Use os.MkdirAll instead of os.Mkdir to create Orchard's home directory (#96)

* Use os.MkdirAll instead of os.Mkdir to create Orchard's home directory

* README.md: document ORCHARD_HOME

* README.md: sort environment variables
This commit is contained in:
Nikolay Edigaryev
2023-06-26 19:35:50 +04:00
committed by GitHub
parent c4c1851aff
commit 9b0cce182f
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -71,8 +71,9 @@ Orchard Controller instance is secured by default and all API calls are authenti
In addition to controlling the Orchard via the CLI arguments, there are environment variables that may be beneficial both when automating Orchard and in daily use:
| Variable name | Description |
|---------------------------------|------------------------------------------------------------------------------------|
| `ORCHARD_URL` | Override controller URL on per-command basis |
| `ORCHARD_SERVICE_ACCOUNT_NAME` | Override service account name (used for controller API auth) on per-command basis |
| `ORCHARD_SERVICE_ACCOUNT_TOKEN` | Override service account token (used for controller API auth) on per-command basis |
| Variable name | Description |
|---------------------------------|----------------------------------------------------------------------------------------------------------------------|
| `ORCHARD_HOME` | Override Orchard's home directory. Useful when running multiple Orchard instances on the same host and when testing. |
| `ORCHARD_SERVICE_ACCOUNT_NAME` | Override service account name (used for controller API auth) on per-command basis |
| `ORCHARD_SERVICE_ACCOUNT_TOKEN` | Override service account token (used for controller API auth) on per-command basis |
| `ORCHARD_URL` | Override controller URL on per-command basis |