Compare commits
	
		
			3 Commits
		
	
	
		
			0.1.2
			...
			8e1c670ffd
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 8e1c670ffd | |||
| e5a9b9aa50 | |||
| c9b2d5bd8d | 
							
								
								
									
										14
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @ -1,3 +1,15 @@ | |||||||
|  | ## 0.1.4 / 2023-01-08 15:45+01:00 | ||||||
|  |  | ||||||
|  | * Fix collectstaticfiles causing error when restarting container (https://git.kucharczyk.xyz/lukas/timetracker/issues/23) | ||||||
|  |  | ||||||
|  | ## 0.1.3 / 2023-01-08 15:23+01:00 | ||||||
|  |  | ||||||
|  | * Fix CSRF error (https://git.kucharczyk.xyz/lukas/timetracker/pulls/22) | ||||||
|  |  | ||||||
|  | ## 0.1.2 / 2023-01-07 22:05+01:00 | ||||||
|  |  | ||||||
|  | * Switch to Uvicorn/Gunicorn + Caddy (https://git.kucharczyk.xyz/lukas/timetracker/pulls/4) | ||||||
|  |  | ||||||
| ## 0.1.1 / 2023-01-05 23:26+01:00 | ## 0.1.1 / 2023-01-05 23:26+01:00 | ||||||
| * Order by timestamp_start by default | * Order by timestamp_start by default | ||||||
| * Add pre-commit hook to update version | * Add pre-commit hook to update version | ||||||
| @ -19,4 +31,4 @@ | |||||||
| * Make it possible to add a new platform | * Make it possible to add a new platform | ||||||
| * Save calculated duration to database if both timestamps are set | * Save calculated duration to database if both timestamps are set | ||||||
| * Improve session listing | * Improve session listing | ||||||
| * Set version in the footer to fixed, fix main container height | * Set version in the footer to fixed, fix main container height | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ RUN npm install && \ | |||||||
|  |  | ||||||
| FROM python:3.10.9-alpine | FROM python:3.10.9-alpine | ||||||
|  |  | ||||||
| ENV VERSION_NUMBER 0.1.1-8-gf7b69f7 | ENV VERSION_NUMBER 0.1.4 | ||||||
| ENV PROD 1 | ENV PROD 1 | ||||||
|  |  | ||||||
| RUN apk add \ | RUN apk add \ | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @ -44,7 +44,7 @@ shell: | |||||||
| 	poetry run python src/web/manage.py shell | 	poetry run python src/web/manage.py shell | ||||||
|  |  | ||||||
| collectstatic: | collectstatic: | ||||||
| 	poetry run python src/web/manage.py collectstatic | 	poetry run python src/web/manage.py collectstatic --clear --no-input | ||||||
|  |  | ||||||
| poetry.lock: pyproject.toml | poetry.lock: pyproject.toml | ||||||
| 	poetry install | 	poetry install | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ echo "Apply database migrations" | |||||||
| poetry run python src/web/manage.py migrate | poetry run python src/web/manage.py migrate | ||||||
|  |  | ||||||
| echo "Collect static files" | echo "Collect static files" | ||||||
| poetry run python src/web/manage.py collectstatic | poetry run python src/web/manage.py collectstatic --clear --no-input | ||||||
|  |  | ||||||
| echo "Starting server" | echo "Starting server" | ||||||
| caddy start | caddy start | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| [tool.poetry] | [tool.poetry] | ||||||
| name = "timetracker" | name = "timetracker" | ||||||
| version = "0.1.1" | version = "0.1.4" | ||||||
| description = "A simple time tracker." | description = "A simple time tracker." | ||||||
| authors = ["Lukáš Kucharczyk <lukas@kucharczyk.xyz>"] | authors = ["Lukáš Kucharczyk <lukas@kucharczyk.xyz>"] | ||||||
| license = "GPL" | license = "GPL" | ||||||
|  | |||||||
| @ -145,7 +145,8 @@ LOGGING = { | |||||||
|     }, |     }, | ||||||
| } | } | ||||||
|  |  | ||||||
| CSRF_TRUSTED_ORIGINS = [] | _csrf_trusted_origins = os.environ.get("CSRF_TRUSTED_ORIGINS") | ||||||
|  | if _csrf_trusted_origins: | ||||||
| if os.environ.get("PROD"): |     CSRF_TRUSTED_ORIGINS = _csrf_trusted_origins.split(",") | ||||||
|     CSRF_TRUSTED_ORIGINS.append(os.environ.get("CSRF_TRUSTED_ORIGINS")) | else: | ||||||
|  |     CSRF_TRUSTED_ORIGINS = [] | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user