Skip to content

Instantly share code, notes, and snippets.

@jbaxleyiii
Created March 7, 2018 20:00
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 jbaxleyiii/21baacd28845f0638f0aebdd4417ce5c to your computer and use it in GitHub Desktop.
Save jbaxleyiii/21baacd28845f0638f0aebdd4417ce5c to your computer and use it in GitHub Desktop.
const { createServer } = require("http");
const { create } = require("./lib/js/re/server.js");
const config = require("./database");
const PORT = process.env.PORT || 4000;
createServer(create(config[process.env.UP_STAGE || "local"])).listen(
PORT,
() => {
console.log(`started on port ${PORT}`);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment