docs: add example for plist (#9294)
* add-example-for-plist * ampersands
This commit is contained in:
parent
bdcc238618
commit
67c2523589
1 changed files with 22 additions and 20 deletions
|
|
@ -383,29 +383,31 @@ To make environment variables available to GUI apps on macOS, you need to use `l
|
||||||
|
|
||||||
3. Add the following content to `dev.langflow.env.plist`, and then add, change, or remove Langflow environment variables as needed for your configuration.
|
3. Add the following content to `dev.langflow.env.plist`, and then add, change, or remove Langflow environment variables as needed for your configuration.
|
||||||
|
|
||||||
This example sets the `LANGFLOW_CONFIG_DIR` environment variable for all GUI apps launched from the macOS GUI.
|
This example sets multiple environmental variables for all GUI apps launched from the macOS GUI.
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<plist version="1.0">
|
||||||
<plist version="1.0">
|
<dict>
|
||||||
<dict>
|
<key>Label</key>
|
||||||
<key>Label</key>
|
<string>dev.langflow.env</string>
|
||||||
<string>dev.langflow.env</string>
|
<key>ProgramArguments</key>
|
||||||
<key>ProgramArguments</key>
|
<array>
|
||||||
<array>
|
<string>/bin/sh</string>
|
||||||
<string>launchctl</string>
|
<string>-c</string>
|
||||||
<string>setenv</string>
|
<string>
|
||||||
<string>LANGFLOW_CONFIG_DIR</string>
|
launchctl setenv LANGFLOW_CONFIG_DIR /Users/your_user/custom/config &&
|
||||||
<string>/Users/your_user/custom/config</string>
|
launchctl setenv LANGFLOW_PORT 7860 &&
|
||||||
</array>
|
launchctl setenv LANGFLOW_HOST localhost &&
|
||||||
<key>RunAtLoad</key>
|
launchctl setenv ARIZE_API_KEY ak-...
|
||||||
<true/>
|
</string>
|
||||||
</dict>
|
</array>
|
||||||
</plist>
|
<key>RunAtLoad</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Load the file with `launchctl`:
|
4. Load the file with `launchctl`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue