testeranto 0.79.67 → 0.79.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Report.Dockerfile +1 -1
- package/dist/common/TaskManBackEnd.js +6 -4
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/TaskManBackEnd.js +6 -4
- package/dist/module/TaskManFrontEnd.js +10 -5
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/TaskManBackEnd.mjs +4 -8
- package/dist/prebuild/TaskManFrontEnd.js +8 -10
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/TaskManBackEnd.ts +124 -126
- package/src/TaskManFrontEnd.tsx +69 -37
package/Report.Dockerfile
CHANGED
|
@@ -38,7 +38,7 @@ RUN yarn run init
|
|
|
38
38
|
|
|
39
39
|
EXPOSE 8080
|
|
40
40
|
EXPOSE 27017
|
|
41
|
-
ENV
|
|
41
|
+
# ENV MONGO_CONNECTION=mongodb+srv://testerantokokomobay:<db_password>@report.7rred.mongodb.net/?retryWrites=true&w=majority&appName=report
|
|
42
42
|
# ENV PORT=8080
|
|
43
43
|
# # CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
|
|
44
44
|
CMD ["yarn", "report"]
|
|
@@ -11,6 +11,7 @@ const fs_1 = __importDefault(require("fs"));
|
|
|
11
11
|
const mongooseSchemas_1 = require("./mongooseSchemas");
|
|
12
12
|
console.log("hello TaskMan Backend", process.env);
|
|
13
13
|
const port = process.env.PORT || "8080";
|
|
14
|
+
const mongoConnect = process.env.MONGO_CONNECTION || "mongodb://127.0.0.1:27017";
|
|
14
15
|
function findTextFiles(dir, fileList = []) {
|
|
15
16
|
const files = fs_1.default.readdirSync(dir);
|
|
16
17
|
for (const file of files) {
|
|
@@ -54,11 +55,12 @@ exports.default = (partialConfig) => {
|
|
|
54
55
|
const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
|
|
55
56
|
fs_1.default.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(config, null, 2));
|
|
56
57
|
const app = (0, express_1.default)();
|
|
57
|
-
new mongodb_1.MongoClient(
|
|
58
|
-
.connect()
|
|
59
|
-
.then(async (conn) => {
|
|
58
|
+
new mongodb_1.MongoClient(mongoConnect).connect().then(async (conn) => {
|
|
60
59
|
const db = conn.db("taskman");
|
|
61
|
-
await mongoose_1.default.connect(
|
|
60
|
+
await mongoose_1.default.connect(`${mongoConnect}/taskman`);
|
|
61
|
+
// await mongoose.connect(
|
|
62
|
+
// `mongodb://${process.env.MONGO_HOST || "127.0.0.1"}:27017/taskman`
|
|
63
|
+
// );
|
|
62
64
|
const usersModel = mongoose_1.default.model("User", mongooseSchemas_1.userSchema);
|
|
63
65
|
const kanbanModel = mongoose_1.default.model("Kanban", mongooseSchemas_1.kanbanSchema);
|
|
64
66
|
const ganttModel = mongoose_1.default.model("Gantt", mongooseSchemas_1.ganttSchema);
|