It's a real pain in the arse to set these things up.
Last active
August 29, 2015 14:00
-
-
Save joey-coleman/11111811 to your computer and use it in GitHub Desktop.
Node.js/Ghost as a OS X webapp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> | |
<!-- /Library/Server/Web/Config/apache2/webapps/ca.sheepspace.jwc.ghost.plist --> | |
<!-- See man pages for webapp.plist(8) and webappctl(8) for information about this example webapp.plist --> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>ca.sheepspace.jwc.ghost</string> | |
<key>displayName</key> | |
<string>Ghost Blog engine for jwc.sheepspace.ca</string> | |
<key>includeFiles</key> | |
<array> | |
<string>/Library/Server/Web/Config/apache2/httpd_ca.sheepspace.jwc.ghost.conf</string> | |
</array> | |
<key>sslPolicy</key> | |
<integer>0</integer> | |
</dict> | |
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> | |
<!-- /Library/LaunchDaemons/ca.sheepspace.jwc.node.plist --> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>ca.sheepspace.jwc.node</string> | |
<key>RunAtLoad</key> | |
<false/> | |
<key>KeepAlive</key> | |
<true/> | |
<key>UserName</key> | |
<string>jwc</string> | |
<key>WorkingDirectory</key> | |
<string>/Users/jwc/Sites/ghost-test/</string> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> | |
</dict> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/npm</string> | |
<string>start</string> | |
<string>/Users/jwc/Sites/ghost-test/</string> | |
</array> | |
<key>StandardOutPath</key> | |
<string>/Users/jwc/Sites/jwc.sheepspace.ca.log</string> | |
<key>StandardErrorPath</key> | |
<string>/Users/jwc/Sites/jwc.sheepspace.ca.err.log</string> | |
</dict> | |
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /Library/Server/Web/Config/apache2/httpd_ca.sheepspace.jwc.ghost.conf | |
ProxyPass / balancer://balancer-group-webapp-ca.sheepspace.jwc.ghost--/ | |
ProxyPassReverse / balancer://balancer-group-webapp-ca.sheepspace.jwc.ghost--/ | |
BalancerMember balancer://balancer-group-webapp-ca.sheepspace.jwc.ghost--/ http://localhost:2368 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment