update package.json

This commit is contained in:
Takeshi Kimata
2024-06-23 09:48:41 +09:00
parent da517b442d
commit 1af3ba05e6
4 changed files with 11 additions and 11 deletions

View File

@@ -128,9 +128,11 @@ app.use('/home', homeIndexRoute);
const PORT = process.env.PORT || 8001;
app.listen(PORT, () => {
console.log(`UnitTCMS backend server is running on port ${PORT}`);
console.log(`origin ${frontendOrigin} is only allowed.`);
console.log(`Backend server is running on port ${PORT}`);
console.log(`Access from the frontend origin: ${frontendOrigin} is valid.`);
if (!process.env.SECRET_KEY) {
console.log(`[caution]: using default key to generate token. please set environment variable: 'SECRET_KEY'`);
console.log(
"[Warning]: Default key is used for token generation. Please set the environment variable 'SECRET_KEY'`."
);
}
});

View File

@@ -1,14 +1,12 @@
{
"name": "backend",
"name": "unittcms-backend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"private": true,
"scripts": {
"start": "node index",
"migrate": "bash scripts/migrate.sh",
"seed": "bash scripts/seed.sh",
"drop": "bash scripts/drop.sh",
"test": "echo \"Error: no test specified\" && exit 1"
"drop": "bash scripts/drop.sh"
},
"author": "",
"license": "ISC",