|
@@ -2,6 +2,11 @@ const app = require('../app');
|
|
|
const db = require('../model/db');
|
|
|
const createFolderIsExist = require('../helpers/create-directory');
|
|
|
const PORT = process.env.PORT || 3000;
|
|
|
+const BASE_URL = process.env.BASE_URL;
|
|
|
+
|
|
|
+setInterval(() => {
|
|
|
+ http.get(`${BASE_URL}`);
|
|
|
+}, 25 * 60 * 1000);
|
|
|
|
|
|
db.then(() => {
|
|
|
app.listen(PORT, async () => {
|