diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a5b1ce5 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ + + +FILE = dc-front.yml + +pull: + git fetch + git merge origin/main + +down: + docker compose -f $(FILE) down + + +up: + docker compose -f $(FILE) up -d --build + +deploy: pull down up diff --git a/package.json b/package.json index 230c137..4465902 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "private": true, "scripts": { "dev": "cross-env NEXT_PUBLIC_API_URL=https://cpost.felixits.uz next dev --port=3080", - "build": "cross-env NEXT_PUBLIC_API_URL=https://api.cpost-express.uz next build", + "build": "cross-env NEXT_PUBLIC_API_URL=https://api.cpcargo.uz next build", "build:dev": "cross-env NEXT_PUBLIC_API_URL=https://cpost.felixits.uz next build", - "build:prod": "cross-env NEXT_PUBLIC_API_URL=https://api.cpost-express.uz next build", + "build:prod": "cross-env NEXT_PUBLIC_API_URL=https://api.cpcargo.uz next build", "start": "next start", "lint": "next lint", "test": "vitest", @@ -72,4 +72,4 @@ "vitest": "^1.1.3" }, "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" -} \ No newline at end of file +}