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