dev #2
|
@ -0,0 +1,52 @@
|
||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev # Adjust the branch as needed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_push_images:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Docker login
|
||||||
|
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} ci.svs-tech.pro
|
||||||
|
|
||||||
|
- name: Build and push Docker images
|
||||||
|
run: |
|
||||||
|
docker compose build
|
||||||
|
docker compose push
|
||||||
|
|
||||||
|
deploy_to_server_dev:
|
||||||
|
needs: [build_and_push_images]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Configure SSH key
|
||||||
|
run: |
|
||||||
|
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||||
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
|
||||||
|
- name: SSH into host down-up docker
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
env:
|
||||||
|
NUXT_PUBLIC_API_BASE: 'https://mns.kustarshina.ru/kp'
|
||||||
|
NUXT_PUBLIC_IMG_BASE: 'https://mns.kustarshina.ru'
|
||||||
|
NUXT_PUBLIC_BASE_URL: 'https://kupizabor.kustarshina.ru'
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
port: ${{ secrets.SSH_PORT }}
|
||||||
|
envs: NUXT_PUBLIC_API_BASE, NUXT_PUBLIC_IMG_BASE, NUXT_PUBLIC_BASE_URL
|
||||||
|
script: |
|
||||||
|
cd /home/svs-adm/mns-mini-zabor
|
||||||
|
echo "restart container"
|
||||||
|
docker-compose down
|
||||||
|
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} ci.svs-tech.pro
|
||||||
|
docker-compose pull
|
||||||
|
docker logout ci.svs-tech.pro
|
||||||
|
docker-compose up -d
|
81
README.md
81
README.md
|
@ -1,75 +1,18 @@
|
||||||
# Nuxt 3 Minimal Starter
|
# Kupizabor
|
||||||
|
|
||||||
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
|
## Стек
|
||||||
|
|
||||||
## Setup
|
* vue3
|
||||||
|
* nextjs
|
||||||
|
* threejs
|
||||||
|
* tresjs
|
||||||
|
|
||||||
Make sure to install the dependencies:
|
## Запуск
|
||||||
|
|
||||||
```bash
|
* npm run dev
|
||||||
# npm
|
|
||||||
npm install
|
|
||||||
|
|
||||||
# pnpm
|
## Env
|
||||||
pnpm install
|
|
||||||
|
|
||||||
# yarn
|
* `NUXT_PUBLIC_API_BASE='https://mns.kustarshina.ru/kp'`
|
||||||
yarn install
|
* `NUXT_PUBLIC_IMG_BASE='https://mns.kustarshina.ru'`
|
||||||
|
* `NUXT_PUBLIC_BASE_URL='https://kupizabor.kustarshina.ru'`
|
||||||
# bun
|
|
||||||
bun install
|
|
||||||
```
|
|
||||||
|
|
||||||
## Development Server
|
|
||||||
|
|
||||||
Start the development server on `http://localhost:3000`:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# npm
|
|
||||||
npm run dev
|
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm run dev
|
|
||||||
|
|
||||||
# yarn
|
|
||||||
yarn dev
|
|
||||||
|
|
||||||
# bun
|
|
||||||
bun run dev
|
|
||||||
```
|
|
||||||
|
|
||||||
## Production
|
|
||||||
|
|
||||||
Build the application for production:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# npm
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm run build
|
|
||||||
|
|
||||||
# yarn
|
|
||||||
yarn build
|
|
||||||
|
|
||||||
# bun
|
|
||||||
bun run build
|
|
||||||
```
|
|
||||||
|
|
||||||
Locally preview production build:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# npm
|
|
||||||
npm run preview
|
|
||||||
|
|
||||||
# pnpm
|
|
||||||
pnpm run preview
|
|
||||||
|
|
||||||
# yarn
|
|
||||||
yarn preview
|
|
||||||
|
|
||||||
# bun
|
|
||||||
bun run preview
|
|
||||||
```
|
|
||||||
|
|
||||||
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
|
Loading…
Reference in New Issue