get unsynced symbol-asOfDate combos in batches

use `clickhouse.sakal.us` instead of `kubectl port-forward`
This commit is contained in:
Avraham Sakal
2024-02-25 15:18:15 -05:00
parent 5c8a54b4b5
commit dabfec86a1
6 changed files with 45 additions and 23 deletions
+16 -2
View File
@@ -1,7 +1,21 @@
import path from 'path';
import { fileURLToPath } from 'url';
import dotenv from 'dotenv';
if(process.env.NODE_DEV==="development"){
dotenv.config({ path:"../.env.development" });
/** ES modules cannot use `__dirname`, so we have to mimic its functionality.
* Taken from [https://flaviocopes.com/fix-dirname-not-defined-es-module-scope/]
*/
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
if(process.env.NODE_ENV==="development"){
const ret = dotenv.config({ path:`${__dirname}/../.env.development` });
if(ret.parsed){
console.log("parsed!", process.env)
}
else{
console.log("not parsed ;-(", ret.error)
}
}
export default null;