mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Separate bot and API server .env files. Add example .env files.
This commit is contained in:
parent
0c00c5355f
commit
2a10837194
5 changed files with 18 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import { error, notFound } from "./responses";
|
||||
|
||||
require("dotenv").config();
|
||||
require("dotenv").config({ path: path.resolve(__dirname, "..", "..", "api.env") });
|
||||
|
||||
import express from "express";
|
||||
import cors from "cors";
|
||||
|
@ -8,6 +8,7 @@ import { initAuth } from "./auth";
|
|||
import { initGuildsAPI } from "./guilds";
|
||||
import { initArchives } from "./archives";
|
||||
import { connect } from "../data/db";
|
||||
import path from "path";
|
||||
|
||||
console.log("Connecting to database...");
|
||||
connect().then(() => {
|
||||
|
|
|
@ -12,7 +12,7 @@ import DiscordHTTPError from "eris/lib/errors/DiscordHTTPError"; // tslint:disab
|
|||
|
||||
import { Configs } from "./data/Configs";
|
||||
|
||||
require("dotenv").config();
|
||||
require("dotenv").config({ path: path.resolve(__dirname, "..", "bot.env") });
|
||||
|
||||
// Error handling
|
||||
let recentPluginErrors = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue