diff --git a/services/cron-jobs/import-named-polls/.env.local b/services/cron-jobs/import-named-polls/.env similarity index 60% rename from services/cron-jobs/import-named-polls/.env.local rename to services/cron-jobs/import-named-polls/.env index f33da3d00..69acf1f9b 100644 --- a/services/cron-jobs/import-named-polls/.env.local +++ b/services/cron-jobs/import-named-polls/.env @@ -1 +1,2 @@ DB_URL=mongodb://localhost/bundestagio +CRAWLEE_STORAGE_DIR=./data \ No newline at end of file diff --git a/services/cron-jobs/import-named-polls/.gitignore b/services/cron-jobs/import-named-polls/.gitignore index 31553ae4f..326cde70c 100644 --- a/services/cron-jobs/import-named-polls/.gitignore +++ b/services/cron-jobs/import-named-polls/.gitignore @@ -1,4 +1,4 @@ node_modules build -/storage/* -!/storage/.gitkeep \ No newline at end of file +/data/* +!/data/.gitkeep \ No newline at end of file diff --git a/services/cron-jobs/import-named-polls/package.json b/services/cron-jobs/import-named-polls/package.json index d36acaa5d..1753acd79 100644 --- a/services/cron-jobs/import-named-polls/package.json +++ b/services/cron-jobs/import-named-polls/package.json @@ -4,12 +4,12 @@ "main": "build/index.js", "license": "Apache-2.0", "scripts": { - "dev": "ts-node-dev -r dotenv/config ./src/index dotenv_config_path=./.env.local", + "dev": "ts-node-dev -r dotenv/config ./src/index dotenv_config_path=./.env", "lint": "pnpm lint:ts && pnpm lint:exports", "lint:ts": "tsc --noEmit", "lint:exports": "ts-unused-exports ./tsconfig.json --excludePathsFromReport=generated --excludePathsFromReport=resolvers --excludePathsFromReport=/schemas", "build": "tsc", - "start": "node ./build/index.js" + "start": "node -r dotenv/config ./build/index.js dotenv_config_path=./.env" }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", diff --git a/services/cron-jobs/import-named-polls/storage/.gitkeep b/services/cron-jobs/import-named-polls/storage/.gitkeep deleted file mode 100644 index e69de29bb..000000000