first version
This commit is contained in:
23
sync-test.ts
Normal file
23
sync-test.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { syncAllDomains } from './app/lib/sync';
|
||||
import dotenv from 'dotenv';
|
||||
import http from 'http';
|
||||
import https from 'https';
|
||||
|
||||
http.globalAgent.keepAlive = true;
|
||||
https.globalAgent.keepAlive = true;
|
||||
dotenv.config({ path: '.env' });
|
||||
|
||||
console.log('DATABASE_URL:', process.env.DATABASE_URL);
|
||||
console.log('AWS_REGION:', process.env.AWS_REGION);
|
||||
console.log('AWS_ACCESS_KEY_ID:', process.env.AWS_ACCESS_KEY_ID ? 'Set' : 'Not set'); // Maskiere sensible Keys
|
||||
console.log('AWS_SECRET_ACCESS_KEY:', process.env.AWS_SECRET_ACCESS_KEY ? 'Set' : 'Not set');
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
console.log('Starting sync...');
|
||||
await syncAllDomains();
|
||||
console.log('Sync done');
|
||||
} catch (error) {
|
||||
console.error('Error:', error);
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user