From 23f59492247884787daddb58a04c93b301cb3211 Mon Sep 17 00:00:00 2001 From: eNzy Date: Thu, 28 Jun 2018 03:22:40 +0700 Subject: [PATCH] feat: add APP_NAME --- .env.example | 4 ++++ config/app.js | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.env.example b/.env.example index 831b2bc..0311443 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,10 @@ HOST=127.0.0.1 PORT=3333 NODE_ENV=development + +CACHE_VIEWS=false + +APP_NAME=AdonisJs APP_URL=http://${HOST}:${PORT} CACHE_VIEWS=false diff --git a/config/app.js b/config/app.js index 6888951..7fc8f62 100644 --- a/config/app.js +++ b/config/app.js @@ -3,6 +3,20 @@ const Env = use('Env') module.exports = { + + /* + |-------------------------------------------------------------------------- + | Application Name + |-------------------------------------------------------------------------- + | + | This value is the name of your application and can used when you + | need to place the application's name in a email, view or + | other location. + | + */ + + name: Env.get('APP_NAME', 'AdonisJs'), + /* |-------------------------------------------------------------------------- | App Key