Skip to content

Commit 684bdf3

Browse files
committed
add support for GITLY_PORT=9876 ./gitly.exe
1 parent 5ac3597 commit 684bdf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitly.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import config
1212

1313
const (
1414
commits_per_page = 35
15-
http_port = 8080
15+
http_port = os.getenv_opt('GITLY_PORT') or { '8080' }.int()
1616
expire_length = 200
1717
posts_per_day = 5
1818
max_username_len = 40

0 commit comments

Comments
 (0)