diff --git a/Cargo.toml b/Cargo.toml index af16311..8fcc5a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,8 +79,8 @@ style-file = "style/main.scss" # # Optional. Env: LEPTOS_ASSETS_DIR. assets-dir = "assets" -# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup. -site-addr = "127.0.0.1:3000" +# The IP and port (ex: 127.0.0.1:3004) where the server serves the content. Use it in your server setup. +site-addr = "127.0.0.1:3004" # The port to use for automatic reload monitoring reload-port = 3001 # [Optional] Command to use when running end2end tests. It will run in the end2end dir. diff --git a/README.md b/README.md index 1abdd4b..3d36de1 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ It combines Rust's **Leptos** for a modern, reactive frontend and **Nostr** for ```bash cargo leptos serve ``` -3. Open your browser at [localhost:3000](http://localhost:3000) +3. Open your browser at [localhost:3004](http://localhost:3004) ## **Database Schema** ### Key Concepts @@ -97,7 +97,7 @@ sequenceDiagram ```bash docker-compose up -d ``` -3. Access the application at: [http://localhost:3000](http://localhost:3000) +3. Access the application at: [http://localhost:3004](http://localhost:3004) ### **Collaboration** We welcome contributions! Here’s how you can help: diff --git a/docker-compose.yml b/docker-compose.yml index 87d62e3..ddf24aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: app: build: . ports: - - "3000:3000" + - "3004:3004" volumes: - ./compareware.db:/app/compareware.db environment: diff --git a/dockerfile b/dockerfile index b61ad15..1aa55bc 100644 --- a/dockerfile +++ b/dockerfile @@ -50,7 +50,7 @@ COPY assets /app/assets # Configure container, expose port and set entrypoint WORKDIR /app -EXPOSE 3000 -ENV LEPTOS_SITE_ADDR=0.0.0.0:3000 +EXPOSE 3004 +ENV LEPTOS_SITE_ADDR=0.0.0.0:3004 ENV LEPTOS_SITE_ROOT="site" CMD ["./compareware"] \ No newline at end of file diff --git a/end2end/playwright.config.ts b/end2end/playwright.config.ts index f4c3483..0fb2d49 100644 --- a/end2end/playwright.config.ts +++ b/end2end/playwright.config.ts @@ -35,7 +35,7 @@ export default defineConfig({ /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */ actionTimeout: 0, /* Base URL to use in actions like `await page.goto('/')`. */ - // baseURL: 'http://localhost:3000', + // baseURL: 'http://localhost:3004', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: "on-first-retry", @@ -99,6 +99,6 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ // webServer: { // command: 'npm run start', - // port: 3000, + // port: 3004, // }, }); diff --git a/end2end/tests/example.spec.ts b/end2end/tests/example.spec.ts index a461f35..7173dbf 100644 --- a/end2end/tests/example.spec.ts +++ b/end2end/tests/example.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from "@playwright/test"; test("homepage has title and links to intro page", async ({ page }) => { - await page.goto("http://localhost:3000/"); + await page.goto("http://localhost:3004/"); await expect(page).toHaveTitle("Welcome to Leptos");