add dev/prod config ENV / README

This commit is contained in:
lesion 2018-08-26 23:22:11 +02:00
parent e0359b339d
commit 08d5052493
No known key found for this signature in database
GPG Key ID: 352918250B012177
2 changed files with 16 additions and 2 deletions

View File

@ -1,8 +1,13 @@
### [WIP] ### [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: per farlo partire:
`npm run start`
`npm run dev`
visit `http://localhost:8000` visit `http://localhost:8000`

9
config.js Normal file
View File

@ -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/'
}