|
|
|
@ -4,6 +4,13 @@ import { App } from "sealious";
|
|
|
|
|
import tasks from "./collections/tasks";
|
|
|
|
|
const locreq = _locreq(__dirname);
|
|
|
|
|
|
|
|
|
|
const PORT = process.env.SEALIOUS_PORT
|
|
|
|
|
? parseInt(process.env.SEALIOUS_PORT)
|
|
|
|
|
: 8080;
|
|
|
|
|
const base_url = process.env.SEALIOUS_BASE_URL || `http://localhost:${PORT}`;
|
|
|
|
|
|
|
|
|
|
console.log(process.env);
|
|
|
|
|
|
|
|
|
|
export default class TheApp extends App {
|
|
|
|
|
config = {
|
|
|
|
|
upload_path: locreq.resolve("uploaded_files"),
|
|
|
|
@ -19,13 +26,16 @@ export default class TheApp extends App {
|
|
|
|
|
logger: {
|
|
|
|
|
level: <const>"info",
|
|
|
|
|
},
|
|
|
|
|
"www-server": {
|
|
|
|
|
port: PORT,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
manifest = {
|
|
|
|
|
name: "Sealious Playground",
|
|
|
|
|
logo: resolve(__dirname, "../assets/logo.png"),
|
|
|
|
|
version: "0.0.1",
|
|
|
|
|
default_language: "en",
|
|
|
|
|
base_url: "localhost:8080",
|
|
|
|
|
base_url,
|
|
|
|
|
admin_email: "admin@example.com",
|
|
|
|
|
colors: {
|
|
|
|
|
primary: "#5294a1",
|
|
|
|
|