Initial commit: KHY Admin project
This commit is contained in:
commit
d3403cb5e2
65 changed files with 12739 additions and 0 deletions
49
deploy-config.js
Normal file
49
deploy-config.js
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
/**
|
||||
* Deploy Configuration for KHY Admin Dashboard
|
||||
*
|
||||
* This file contains configuration for deploying from the admin repository
|
||||
* to the main KHY website repository.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
// Default target paths (adjust these based on your setup)
|
||||
targets: {
|
||||
// If admin and main website are in the same parent directory
|
||||
sibling: "../khy_website",
|
||||
|
||||
// If admin is in a subdirectory of the main website
|
||||
parent: "../",
|
||||
|
||||
// Absolute path examples (uncomment and modify as needed)
|
||||
// absolute: "/path/to/your/khy_website",
|
||||
// absolute: "/Users/george/Documents/khy_website/khy_website",
|
||||
},
|
||||
|
||||
// Which target to use by default
|
||||
defaultTarget: "sibling",
|
||||
|
||||
// Files to copy from admin to main website
|
||||
filesToCopy: [
|
||||
{
|
||||
source: "data/products.json",
|
||||
target: "data/products.json",
|
||||
description: "Product catalog data",
|
||||
},
|
||||
{
|
||||
source: "assets/images",
|
||||
target: "assets/images",
|
||||
description: "Product images",
|
||||
isDirectory: true,
|
||||
},
|
||||
],
|
||||
|
||||
// Required files that must exist in target directory
|
||||
requiredTargetFiles: ["index.html", "data/products.json"],
|
||||
|
||||
// Backup settings
|
||||
backup: {
|
||||
enabled: true,
|
||||
directory: "backups",
|
||||
timestampFormat: "YYYY-MM-DD_HH-mm-ss",
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue