fix manifest.in to properly include package files, and fix docker-compose web and staging to use the correct tags (stable and staging) instead of edge
This commit is contained in:
parent
95d794d8b9
commit
eeae7ae675
7 changed files with 14 additions and 36 deletions
9
.github/workflows/build_deploy.yml
vendored
9
.github/workflows/build_deploy.yml
vendored
|
|
@ -156,11 +156,8 @@ jobs:
|
||||||
} >> "$GITHUB_OUTPUT"
|
} >> "$GITHUB_OUTPUT"
|
||||||
- name: Run prebuild tasks
|
- name: Run prebuild tasks
|
||||||
run: |
|
run: |
|
||||||
echo "🔄 Chdir to src/pkmntrade_club/"
|
echo "🔄 Chdir to src/pkmntrade_club/theme/static_src"
|
||||||
cd src/pkmntrade_club/
|
cd src/pkmntrade_club/theme/static_src
|
||||||
|
|
||||||
echo "🔄 Chdir to theme/static_src"
|
|
||||||
cd theme/static_src
|
|
||||||
|
|
||||||
echo "📦 Install npm dependencies"
|
echo "📦 Install npm dependencies"
|
||||||
npm install .
|
npm install .
|
||||||
|
|
@ -271,7 +268,7 @@ jobs:
|
||||||
ssh deploy "cd ${{ steps.meta.outputs.REPO_PROJECT_PATH }} && docker compose -f docker-compose_core.yml -f docker-compose_staging.yml up -d --no-build"
|
ssh deploy "cd ${{ steps.meta.outputs.REPO_PROJECT_PATH }} && docker compose -f docker-compose_core.yml -f docker-compose_staging.yml up -d --no-build"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# echo "🚀 Start the new containers"
|
# echo "🚀 Start the new containers, zero-downtime"
|
||||||
# if [ "${PROD}" = true ]; then
|
# if [ "${PROD}" = true ]; then
|
||||||
# ssh deploy <<<END
|
# ssh deploy <<<END
|
||||||
# cd ${{ steps.meta.outputs.REPO_PROJECT_PATH}}
|
# cd ${{ steps.meta.outputs.REPO_PROJECT_PATH}}
|
||||||
|
|
|
||||||
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -1,7 +1,9 @@
|
||||||
.env.production
|
.env.production
|
||||||
.env
|
.env
|
||||||
staticfiles/*
|
src/pkmntrade_club/staticfiles/*
|
||||||
!staticfiles/.gitkeep
|
!src/pkmntrade_club/staticfiles/.gitkeep
|
||||||
|
src/pkmntrade_club/media/*
|
||||||
|
!src/pkmntrade_club/media/.gitkeep
|
||||||
seed/0004_TestUsers.json
|
seed/0004_TestUsers.json
|
||||||
seed/0005_TradeOffers.json
|
seed/0005_TradeOffers.json
|
||||||
media/trade_offers
|
media/trade_offers
|
||||||
|
|
|
||||||
31
MANIFEST.in
31
MANIFEST.in
|
|
@ -1,30 +1,9 @@
|
||||||
include README.md
|
include README.md
|
||||||
include LICENSE
|
include LICENSE
|
||||||
|
|
||||||
graft src/pkmntrade_club/accounts/templates
|
graft src/pkmntrade_club
|
||||||
graft src/pkmntrade_club/accounts/migrations
|
prune src/pkmntrade_club/theme/static_src
|
||||||
|
prune src/pkmntrade_club/staticfiles/*
|
||||||
|
prune src/pkmntrade_club/media/*
|
||||||
|
|
||||||
graft src/pkmntrade_club/cards/templates
|
global-exclude *.py[cod] __pycache__ .DS_Store .*
|
||||||
graft src/pkmntrade_club/cards/migrations
|
|
||||||
|
|
||||||
graft src/pkmntrade_club/home/migrations
|
|
||||||
|
|
||||||
graft src/pkmntrade_club/theme/templates
|
|
||||||
graft src/pkmntrade_club/theme/templatetags
|
|
||||||
graft src/pkmntrade_club/theme/static
|
|
||||||
|
|
||||||
graft src/pkmntrade_club/trades/templates
|
|
||||||
graft src/pkmntrade_club/trades/migrations
|
|
||||||
|
|
||||||
graft src/pkmntrade_club/static
|
|
||||||
|
|
||||||
recursive-include src/pkmntrade_club/accounts *.html *.py
|
|
||||||
recursive-include src/pkmntrade_club/cards *.html *.py
|
|
||||||
recursive-include src/pkmntrade_club/common *.html *.py
|
|
||||||
recursive-include src/pkmntrade_club/django_project *.html *.py
|
|
||||||
recursive-include src/pkmntrade_club/home *.html *.py
|
|
||||||
recursive-include src/pkmntrade_club/static *
|
|
||||||
recursive-include src/pkmntrade_club/theme *.html *.py
|
|
||||||
recursive-include src/pkmntrade_club/trades *.html *.py
|
|
||||||
|
|
||||||
global-exclude *.py[cod] __pycache__ .DS_Store .*
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
web-staging:
|
web-staging:
|
||||||
image: badbl0cks/pkmntrade-club:edge
|
image: badbl0cks/pkmntrade-club:staging
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ services:
|
||||||
web:
|
web:
|
||||||
image: ghcr.io/xe/x/httpdebug
|
image: ghcr.io/xe/x/httpdebug
|
||||||
entrypoint: ["/ko-app/httpdebug", "--bind", ":8000"]
|
entrypoint: ["/ko-app/httpdebug", "--bind", ":8000"]
|
||||||
#image: badbl0cks/pkmntrade-club:edge
|
#image: badbl0cks/pkmntrade-club:stable
|
||||||
#command: ["granian", "--interface", "wsgi", "pkmntrade_club.django_project.wsgi:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--workers-kill-timeout", "180", "--access-log"]
|
#command: ["granian", "--interface", "wsgi", "pkmntrade_club.django_project.wsgi:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--workers-kill-timeout", "180", "--access-log"]
|
||||||
# env_file:
|
# env_file:
|
||||||
# - .env
|
# - .env
|
||||||
|
|
|
||||||
0
src/pkmntrade_club/staticfiles/.gitkeep
Normal file
0
src/pkmntrade_club/staticfiles/.gitkeep
Normal file
Loading…
Add table
Add a link
Reference in a new issue