Skip to content

Commit d3a148b

Browse files
Added docker igore
1 parent c988484 commit d3a148b

File tree

3 files changed

+60
-8
lines changed

3 files changed

+60
-8
lines changed

.dockerignore

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# General OS files
2+
*.DS_Store
3+
*.swp
4+
*.swo
5+
Thumbs.db
6+
7+
# Python
8+
__pycache__/
9+
*.pyc
10+
*.pyo
11+
*.pyd
12+
*.env
13+
.env.*
14+
15+
# Node.js
16+
node_modules/
17+
npm-debug.log
18+
yarn-error.log
19+
.pnpm-debug.log
20+
*.log
21+
22+
# React build artifacts
23+
/build/
24+
/dist/
25+
26+
# Django
27+
/media/
28+
/staticfiles/
29+
*.sqlite3
30+
31+
# Git
32+
.git/
33+
.gitignore
34+
35+
# Docker-specific
36+
Dockerfile
37+
.dockerignore
38+
39+
# IDE and editor settings
40+
.vscode/
41+
.idea/
42+
*.iml
43+
*.sublime-project
44+
*.sublime-workspace
45+
46+
# Coverage and testing
47+
htmlcov/
48+
.coverage
49+
*.cover
50+
.tox/
51+
.cache/
52+
.nox/
53+
pytest_cache/
54+
55+
# Local environment and deployment
56+
*.local
57+
*.log
58+
logs/

docker-compose.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ services:
66
container_name: nxtbn_backend
77
ports:
88
- "8000:8000"
9-
# environment:
10-
# DATABASE_NAME: ${DATABASE_NAME}
11-
# DATABASE_USER: ${DATABASE_USER}
12-
# DATABASE_PASSWORD: ${DATABASE_PASSWORD}
13-
# DATABASE_HOST: ${DATABASE_HOST}
14-
# DATABASE_PORT: ${DATABASE_PORT}
159
volumes:
1610
- static_data:/backend/staticfiles
1711
- "./dist/media:/backend/media"

nxtbn/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ def get_env_var(key, default=None, var_type=str):
251251
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
252252

253253
STATICFILES_DIRS = [
254-
os.path.join(BASE_DIR, 'static'),
255-
os.path.join(BASE_DIR, 'admin-build/static'),
254+
os.path.join(BASE_DIR, 'static'),
255+
# os.path.join(BASE_DIR, 'admin-build/static'), # No longer needed as cdn is used
256256
]
257257

258258
MEDIA_URL = '/media/'

0 commit comments

Comments
 (0)