buld(port): change ip adress to 3004
This commit is contained in:
parent
102f69fd29
commit
b017df9b35
6 changed files with 10 additions and 10 deletions
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -2,7 +2,7 @@ services:
|
|||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "3004:3004"
|
||||
volumes:
|
||||
- ./compareware.db:/app/compareware.db
|
||||
environment:
|
||||
|
|
|
@ -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"]
|
|
@ -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,
|
||||
// },
|
||||
});
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue