Free and open source ticket system written in python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add Docker compose instructions and move static files

+37 -14
+35
README.md
··· 51 51 52 52 The Project contains a [Dockerfile](Dockerfile) that can be built locally or in a pipeline. I also provide the latest state of the `main` branch as an image 53 53 54 + #### Compose 55 + 56 + 1. Create a compose file, e.g. `docker-compose.yml` 57 + 58 + ```bash 59 + version: '3.8' 60 + services: 61 + paw: 62 + image: ghcr.io/aottr/paw:latest 63 + container_name: paw-ticket-system 64 + restart: unless-stopped 65 + ports: 66 + - "127.0.0.1:8000:8000" 67 + env_file: 68 + - .env 69 + ``` 70 + 71 + 2. Run the container with compose 72 + 73 + ```bash 74 + docker compose up -d 75 + ``` 76 + 77 + 3. Migrate the database (optional, recommended) 78 + 79 + ```bash 80 + docker compose exec paw python manage.py migrate 81 + ``` 82 + 83 + 4. Collect static files (optional, recommended) 84 + 85 + ```bash 86 + docker compose exec paw python manage.py collectstatic --no-input 87 + ``` 88 + 54 89 ## Usage 55 90 56 91 - Access the application through `http://localhost:8000`.
+2 -2
paw/settings.py
··· 149 149 # https://docs.djangoproject.com/en/5.0/howto/static-files/ 150 150 151 151 STATIC_URL = "/static/" 152 - # STATIC_ROOT = path.join(BASE_DIR, 'static') 152 + STATIC_ROOT = path.join(BASE_DIR, 'static/') 153 153 STATICFILES_DIRS = ( 154 - path.join(BASE_DIR, 'static/'), 154 + path.join(BASE_DIR, 'paw', 'static'), 155 155 ) 156 156 157 157 MEDIA_URL = '/media/'
-12
static/css/paw.css paw/static/css/paw.css
··· 3116 3116 height: 100%; 3117 3117 } 3118 3118 3119 - .h-8 { 3120 - height: 2rem; 3121 - } 3122 - 3123 3119 .min-h-screen { 3124 3120 min-height: 100vh; 3125 3121 } ··· 3158 3154 3159 3155 .w-full { 3160 3156 width: 100%; 3161 - } 3162 - 3163 - .w-8 { 3164 - width: 2rem; 3165 3157 } 3166 3158 3167 3159 .max-w-3xl { ··· 3314 3306 .bg-neutral { 3315 3307 --tw-bg-opacity: 1; 3316 3308 background-color: var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity))); 3317 - } 3318 - 3319 - .fill-current { 3320 - fill: currentColor; 3321 3309 } 3322 3310 3323 3311 .stroke-current {
static/js/theme_switch.js paw/static/js/theme_switch.js