Skip to content

Instantly share code, notes, and snippets.

@mwoodbri
Last active November 23, 2015 22:47
Show Gist options
  • Save mwoodbri/7340d6de6a280bfab823 to your computer and use it in GitHub Desktop.
Save mwoodbri/7340d6de6a280bfab823 to your computer and use it in GitHub Desktop.
export METEOR_SETTINGS=$(</etc/chaser.json)
export ROOT_URL=http://<HOSTNAME>
export MAIL_URL=smtp://...
export MONGO_URL=mongodb://DBSERVER/meteor
export MONGO_OPLOG_URL=mongodb://DBSERVER/local
export PORT=3000
export HTTP_FORWARDED_COUNT=1
export KADIRA_APP_ID=...
export KADIRA_APP_SECRET=...
node /opt/chaser/main.js
{
...
"public": {
"site_name": "Chaser",
"env": "production",
...
}
}
[Unit]
Description=Chaser
Requires=mongod.service
After=mongod.service
[Service]
ExecStart=/usr/local/bin/chaser
Restart=on-abort
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment