From 08d50524935b7514b479f23cd402527f1092dae8 Mon Sep 17 00:00:00 2001 From: lesion Date: Sun, 26 Aug 2018 23:22:11 +0200 Subject: [PATCH] add dev/prod config ENV / README --- README.md | 9 +++++++-- config.js | 9 +++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 config.js diff --git a/README.md b/README.md index 3fff153..df8413f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,13 @@ ### [WIP] -si, e' tutto in js. *stacce* stack classico (express, blabla). +si, e' tutto in js. *stacce* +stack classico (node, express, blabla). +per i template uso pug. + +la app parte da `app.js` ma in generale il routing lo fa `routes/index.js` per farlo partire: -`npm run start` + +`npm run dev` visit `http://localhost:8000` diff --git a/config.js b/config.js new file mode 100644 index 0000000..089a622 --- /dev/null +++ b/config.js @@ -0,0 +1,9 @@ + +const isDev = process.env.NODE_ENV === 'development' + +module.exports = { + DEV: isDev, + SERVER_IP: '51.68.126.235', + MAINTENANCE: false, // put site in maintenance mode + BASE: isDev ? 'http://localhost:8000/' : 'https://fugadalcontrollo.org/' +}