-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.plist
39 lines (36 loc) · 1.29 KB
/
example.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.example.betterbike</string>
<key>ProgramArguments</key>
<array>
<!-- PATH TO EXECUTABLE -->
<string>/usr/local/bin/betterbike</string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<!-- PATH TO PROJECT DIR -->
<key>StandardOutPath</key>
<string>PATH_TO_REPOSITORY/betterbike-api/betterbike.log</string>
<!-- PATH TO PROJECT DIR -->
<key>StandardErrorPath</key>
<string>PATH_TO_REPOSITORY/betterbike-api/betterbike.log</string>
<key>EnvironmentVariables</key>
<dict>
<!-- DATABASE URL -->
<key>DATABASE_URL</key>
<string>postgres://localhost:5432/citibike-dev</string>
</dict>
</dict>
</plist>
<!--
This is an example of a launchd plist file. If you're using macOS
you can use this to run the betterbike process in the background
using launchd.
To use this file, rename this example file e.g. com.companyname.betterbike.plist
and copy it to ~/Library/LaunchAgents/
-->