Skip to content

Commit

Permalink
Endrer port til 3100, for å ikke gå i veien for fyllut
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-CT committed Jul 25, 2023
1 parent 2489128 commit 8ab17c8
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
install: false
spec: cypress/e2e/*.cy.js
start: npm run start:with:test
wait-on: 'http://localhost:3000/sendinn/api/isAlive'
wait-on: 'http://localhost:3100/sendinn/api/isAlive'
config: video=false
config-file: cypress.config.ts
build-and-push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
install: false
spec: cypress/e2e/*.cy.js
start: npm run start:with:test
wait-on: 'http://localhost:3000/sendinn/api/isAlive'
wait-on: 'http://localhost:3100/sendinn/api/isAlive'
config: video=false
config-file: cypress.config.ts

Expand Down
2 changes: 1 addition & 1 deletion .nais/nais-preprod-alt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
spec:
image: '{{ image }}'
port: 3000
port: 3100
liveness:
path: /sendinn-alt/api/isAlive
initialDelay: 20
Expand Down
2 changes: 1 addition & 1 deletion .nais/nais-preprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
spec:
image: '{{ image }}'
port: 3000
port: 3100
liveness:
path: /sendinn/api/isAlive
initialDelay: 20
Expand Down
2 changes: 1 addition & 1 deletion .nais/nais.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
spec:
image: "{{ image }}"
port: 3000
port: 3100
liveness:
path: /sendinn/api/isAlive
initialDelay: 20
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY ./public ./public
COPY --chown=nextjs:nodejs ./.next/standalone ./
COPY --chown=nextjs:nodejs ./.next/static ./.next/static

EXPOSE 3000
ENV PORT 3000
EXPOSE 3100
ENV PORT 3100

CMD ["node", "server.js"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ npm login --registry=https://npm.pkg.github.com --auth-type=legacy
npm run dev
```

Gå til http://localhost:3000/sendinn/dev
Gå til http://localhost:3100/sendinn/dev

### Kjør cypress tester

Expand Down
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000/sendinn',
baseUrl: 'http://localhost:3100/sendinn',
viewportWidth: 2500,
viewportHeight: 1200,
chromeWebSecurity: false,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"private": true,
"type": "module",
"scripts": {
"dev": "next dev",
"dev:mock": "NODE_ENV=test next dev",
"dev": "next dev -p 3100",
"dev:mock": "NODE_ENV=test next dev -p 3100",
"build": "next build",
"build:mock": "NODE_ENV=test next build",
"build:static": "next build && next export",
"start": "next start",
"start:with:test": "NODE_ENV=test next start",
"start": "next start -p 3100",
"start:with:test": "NODE_ENV=test next start -p 3100",
"lint": "next lint",
"prepare": "husky install",
"cypress": "npx cypress open",
Expand Down

0 comments on commit 8ab17c8

Please sign in to comment.