Skip to content

Instantly share code, notes, and snippets.

@q-ode
Created August 13, 2019 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save q-ode/f1b4c641f387e36d594fa24200161056 to your computer and use it in GitHub Desktop.
Save q-ode/f1b4c641f387e36d594fa24200161056 to your computer and use it in GitHub Desktop.
Start a service
#!/usr/bin/env bash
export MONGODB_CONNECTION_STRING_URI=mongodb://localhost:27017
export MONGODB_NAME=collection-name
export ELASTICSEARCH_NODES="[\"http://localhost:9200\"]"
export REDIS_MASTER_SERVICE_HOST=localhost
export REDIS_MASTER_SERVICE_PORT=6379
#REDIS_MASTER_PASSWORD=
export NODE_ENV=production
npm run build
npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment