Skip to content

SaifulI57/SEA-salon

Repository files navigation

Deployment

backend:

http://175.41.168.31:3000/

frontend:

http://175.41.168.31:4173/

or

sea salon

https://sea-salon.unbound.my.id/

How to Deploy

bash start.sh

if docker reproduce this error:

Datasource "db": PostgreSQL database "mydb", schema "public" at "localhost:6576"

Error: P1001: Can't reach database server at `localhost:6576`

Please make sure your database server is running at `localhost:6576`.

use this command:

docker exec development-backend-1 npx prisma migrate dev --name prod

or

install bun:

npm i -g bun

install package:

bun install

create database postgresql:

docker run --rm --name dev-postgres -p 5432:5432 -e POSTGRES_PASSWORD=12345678 -d postgres

uncomment line 2 and comment line 1 .env:

# DATABASE_URL="postgresql://salon:compfest@postgres:6576/prod?schema=public"
DATABASE_URL="postgresql://postgres:12345678@localhost:5432/mydb?schema=public"

generate prisma:

bunx prisma generate

migrate prisma:

bunx prisma migrate --name ok

start:

bun run dev

start frontend:

cd frontend
npm run dev

or

cd frontend
bun run dev