Skip to content

Commit

Permalink
try fixing startup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-intuitem committed Feb 20, 2024
1 parent 89ae9f6 commit da42e9e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ else
docker compose exec backend python manage.py migrate
echo "initialize your superuser account..."
docker compose exec backend python manage.py createsuperuser
echo "connect to ciso assistant on http://localhost:3000"
echo "connect to ciso assistant on https://localhost:8443"
echo "for successive runs you can now use docker compose up"
fi
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ services:
build: ./frontend
depends_on:
- backend
ports:
- 3000:3000

caddy:
container_name: caddy
Expand Down
2 changes: 1 addition & 1 deletion frontend/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { devices } from '@playwright/test';
const config: PlaywrightTestConfig = {
webServer: {
command: process.env.COMPOSE_TEST ? 'echo "The docker compose frontend server didn\'t start correctly"' : 'npm run build && npm run preview',
port: process.env.COMPOSE_TEST ? 3000 : 4173,
url: process.env.COMPOSE_TEST ? "https://localhost:8443" : "http://localhost:4173",
reuseExistingServer: process.env.COMPOSE_TEST
},
testDir: 'tests',
Expand Down

0 comments on commit da42e9e

Please sign in to comment.