Files
shop10/docs/RELEASE-0.10.md
T

1.4 KiB
Raw Blame History

Релиз 0.10.0

Интернет-магазин на Node.js + PostgreSQL 17.

Вариант A — Docker Compose

git clone <URL_РЕПОЗИТОРИЯ> shop && cd shop
git checkout v0.10.0

cp .env.docker.example .env
# SESSION_SECRET=...

docker compose up -d --build
curl -s http://127.0.0.1:3000/health

Сайт: http://localhost:3000

С HTTPS (Caddy в контейнере):

# TRUST_PROXY=1 в .env, правьте caddy/Caddyfile.docker.example
docker compose --profile proxy up -d --build

Вариант B — без Docker (Ubuntu)

git clone <URL_РЕПОЗИТОРИЯ> shop && cd shop
git checkout v0.10.0

apt install -y git curl
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt install -y nodejs postgresql-17 postgresql-client-17

bash scripts/setup-postgres-ubuntu.sh

cp .env.example .env
# DATABASE_URL, SESSION_SECRET, HOST=127.0.0.1, TRUST_PROXY=1

npm install --omit=dev
cp deploy/shop.service /etc/systemd/system/
systemctl daemon-reload && systemctl enable --now shop

curl -s http://127.0.0.1:3000/health

Caddy на хосте — см. README.md, раздел «Caddy».

Обновление с более ранних версий

  • С SQLite: раздел «Переход с SQLite на PostgreSQL 17» в README
  • С 0.10-beta: git pull, npm install, systemctl restart shop

Тег

git fetch --tags
git checkout v0.10.0