Skip to content

Commit 43463ce

Browse files
committed
fix: Windows compatibility
Fix line endings, pin PostgreSQL version
1 parent ae5cdce commit 43463ce

4 files changed

Lines changed: 21 additions & 6 deletions

File tree

.gitattributes

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Shell scripts should always use LF
5+
*.sh text eol=lf
6+
init.sh text eol=lf
7+
8+
# Docker files should use LF
9+
Dockerfile text eol=lf
10+
*.dockerfile text eol=lf
11+
docker-compose*.yml text eol=lf
12+
13+
# YAML files
14+
*.yaml text eol=lf
15+
*.yml text eol=lf
16+
17+
# SQL files
18+
*.sql text eol=lf

DEVELOPMENT.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
You can install PostgreSQL local https://www.postgresql.org/download/ or use Docker (see `docker-compose.yml`):
66
```
7-
version: "3.2"
87
services:
98
api:
109
build:
@@ -17,7 +16,7 @@ services:
1716
restart: unless-stopped
1817
1918
postgres:
20-
image: postgres
19+
image: postgres:16
2120
environment:
2221
POSTGRES_USER: codex
2322
POSTGRES_DB: notes

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.2'
2-
31
services:
42
api:
53
build:
@@ -12,7 +10,7 @@ services:
1210
restart: unless-stopped
1311

1412
postgres:
15-
image: postgres
13+
image: postgres:16
1614
environment:
1715
POSTGRES_USER: codex
1816
POSTGRES_DB: notes

init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
set -e
3-
node dist/index.js
3+
node dist/index.js

0 commit comments

Comments
 (0)