shaxob #132
@@ -23,7 +23,7 @@ DB_ENGINE=django.db.backends.postgresql_psycopg2
|
|||||||
DB_NAME=django
|
DB_NAME=django
|
||||||
DB_USER=postgres
|
DB_USER=postgres
|
||||||
DB_PASSWORD=2309
|
DB_PASSWORD=2309
|
||||||
DB_HOST=db
|
DB_HOST=postgres
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
|
|
||||||
# Cache
|
# Cache
|
||||||
|
|||||||
7
.github/workflows/deploy.yaml
vendored
7
.github/workflows/deploy.yaml
vendored
@@ -151,6 +151,11 @@ jobs:
|
|||||||
git fetch origin main
|
git fetch origin main
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
|
|
||||||
cp .env.example .env
|
if [ ! -f .env ]; then
|
||||||
|
cp .env.example .env
|
||||||
|
echo ".env yaratildi, production qiymatlarini kiriting!"
|
||||||
|
fi
|
||||||
|
|
||||||
export PORT=8085
|
export PORT=8085
|
||||||
|
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ env.PROJECT_NAME }}:${{ github.run_number }}
|
||||||
docker stack deploy -c stack.yaml ${{ env.PROJECT_NAME }} --with-registry-auth
|
docker stack deploy -c stack.yaml ${{ env.PROJECT_NAME }} --with-registry-auth
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ from config.env import env
|
|||||||
|
|
||||||
|
|
||||||
def home(request):
|
def home(request):
|
||||||
return HttpResponse("OK: #65ab51e65224a92a4b6d488d3e8f9b21d3256876")
|
return HttpResponse("OK: #62f65385e1dada519459965e9e24cfdd20a41e26")
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ from core.apps.tasks.serializers.board import BoardSerializer
|
|||||||
from core.apps.tasks.models import Column
|
from core.apps.tasks.models import Column
|
||||||
|
|
||||||
|
|
||||||
|
#test commit
|
||||||
|
|
||||||
class BoardListView(generics.ListAPIView):
|
class BoardListView(generics.ListAPIView):
|
||||||
queryset = Column.objects.order_by('id')
|
queryset = Column.objects.order_by('id')
|
||||||
serializer_class = BoardSerializer
|
serializer_class = BoardSerializer
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ services:
|
|||||||
max-file: "5"
|
max-file: "5"
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: husanjon/sifatbaho:147
|
image: husanjon/sifatbaho:150
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
@@ -129,7 +129,7 @@ services:
|
|||||||
max-file: "5"
|
max-file: "5"
|
||||||
|
|
||||||
celery:
|
celery:
|
||||||
image: husanjon/sifatbaho:147
|
image: husanjon/sifatbaho:150
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user