Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.

Commit bc50cd3

Browse files
committed
Default api and files (#306)
1 parent 37b5b6f commit bc50cd3

File tree

13 files changed

+9
-80
lines changed

13 files changed

+9
-80
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NODE_ENV=development
2+
PORT=8000
3+
API_URL=http://quran.com:3000

development.env

Lines changed: 0 additions & 3 deletions
This file was deleted.

nightwatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('dotenv').config({path: (process.env.NODE_ENV || 'development') + '.env'});
1+
require('dotenv').load();
22
require('app-module-path').addPath(__dirname);
33
require('app-module-path').addPath('./src/scripts');
44

production.env

Lines changed: 0 additions & 3 deletions
This file was deleted.

server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const debug = debugLib('quran');
1717
import routes from './src/routes';
1818
import ApiClient from './src/helpers/ApiClient';
1919
import createStore from './src/redux/create';
20-
import * as Settings from 'constants/Settings';
2120

2221
import NotFound from 'components/NotFound';
2322
import Errored from 'components/Error';
@@ -90,7 +89,7 @@ export default function serve(cb) {
9089
console.info(`
9190
==> 🌎 ENV=${process.env.NODE_ENV}
9291
==> ✅ Server is listening at http://localhost:${port}
93-
==> 🎯 API at ${Settings.api}
92+
==> 🎯 API at ${process.env.API_URL}
9493
`);
9594

9695
cb && cb(this);

src/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const description = 'The Noble Quran in many languages in an easy-to-use interfa
1313
module.exports = Object.assign({
1414
host: process.env.HOST || 'localhost',
1515
port: process.env.PORT,
16-
url: process.env.CURRENT_URL,
1716
api: process.env.API_URL,
1817
app: {
1918
head: {

src/config.js.nours

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/scripts/constants/Settings.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

staging.env

Lines changed: 0 additions & 3 deletions
This file was deleted.

start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('dotenv').config({path: (process.env.NODE_ENV || 'development') + '.env'});
1+
require('dotenv').load();
22
require('app-module-path').addPath(__dirname);
33
require('app-module-path').addPath('./src/scripts');
44

0 commit comments

Comments
 (0)