build & pm2 start

This commit is contained in:
2025-03-21 21:05:58 +08:00
parent 6e1ada956d
commit d5b9e8eca9
13 changed files with 1351 additions and 1135 deletions

View File

@@ -8,17 +8,9 @@ const config = {
database: process.env.CLICKHOUSE_DATABASE || 'limq'
};
// Log configuration (removing password for security)
console.log('ClickHouse config:', {
...config,
password: config.password ? '****' : ''
});
// Create ClickHouse client with proper URL format
export const clickhouse = createClient(config);
// Log connection status
console.log('ClickHouse client created with URL:', config.url);
/**
* Execute ClickHouse query and return results