Skip to content

Commit

Permalink
fix: path to .env
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Jan 3, 2025
1 parent e94b1b4 commit 8c4f6ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"prepare": "husky || echo 'Failed to install husky'",
"test:e2e": "npm run test:e2e:build:directus && npm run test:e2e:build:dash && npm run test:e2e:run",
"test:e2e:build:directus": "./scripts/build-directus.sh",
"test:e2e:build:dash": "dotenv -e .env -- pnpm build",
"test:e2e:run": "cd test/e2e/globalping-dash-directus && perl -pi -e 's/DASH_INDEX_FILE_PATH=.*/DASH_INDEX_FILE_PATH=..\\/..\\/..\\/\\.output\\/server\\/index\\.mjs/' .env && pnpm run test:e2e:run || E=$?; cd ../../../; exit $E;"
"test:e2e:build:dash": "dotenv -e test/e2e/globalping-dash-directus/.env -- pnpm build",
"test:e2e:run": "cd test/e2e/globalping-dash-directus && pnpm run test:e2e:run || E=$?; cd ../../../; exit $E;"
},
"dependencies": {
"@directus/sdk": "^17.0.2",
Expand Down
2 changes: 2 additions & 0 deletions scripts/build-directus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pnpm i
pnpm exec playwright install --with-deps chromium
cp .env.e2e.example .env.e2e
cp .env.example .env
perl -pi -e 's/DASH_INDEX_FILE_PATH=.*/DASH_INDEX_FILE_PATH=..\/..\/..\/.output\/server\/index.mjs/' .env

docker compose -f docker-compose.e2e.yml up --build -d
pnpm run init:e2e
docker compose -f docker-compose.e2e.yml stop
Expand Down

0 comments on commit 8c4f6ec

Please sign in to comment.