/**
 * Load environment variables from .env for local development.
 * If no .env file is to be found at
 */
// const path  = require('path')
// const chalk = require('chalk')
// const env   = require('dotenv').config()

// if (env.error) {
//   console.warn(chalk.yellow(`No config file was found at ${env.error.path}`))
// } else {
//   console.info(chalk.green('Environment variables loaded from .env:'))
//   console.info(chalk.grey(JSON.stringify(env, null, 2)))
// }

module.exports = {
  port:         process.env.PORT || 4000,
  host:         process.env.HOST || 'localhost',
  env:          process.env.NODE_ENV || 'development',
  database_url: process.env.DATABASE_URL,
  sentry_dsn:   process.env.SENTRY_DSN,
}

/**
 * Load environment variables from .env for local development.
 * If no .env file is to be found at
 */
const path  = require('path')
const chalk = require('chalk')
const env   = require('dotenv').config()

if (env.error) {
  console.warn(chalk.yellow(`No config file was found at ${env.error.path}`))
} else {
  console.info(chalk.green('Environment variables loaded from .env:'))
  console.info(chalk.grey(JSON.stringify(env, null, 2)))
}

module.exports = {
  port:         process.env.PORT || 4000,
  host:         process.env.HOST || 'localhost',
  env:          process.env.NODE_ENV || 'development',
  database_url: process.env.DATABASE_URL,
  sentry_dsn:   process.env.SENTRY_DSN,
}

Add warning when no .env file found
Add warning when no .env file found
