Skip to content

Commit 45daaeb

Browse files
committed
Use GREP_PLACKUP_SERVER_ARGS in Dockerfile
1 parent 9ac02f8 commit 45daaeb

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ WORKDIR /metacpan-grep-front-end
55

66
RUN cpm install --without-test -g
77
EXPOSE 3000
8-
CMD ["plackup", "-p", "3000", "-R", "lib,bin", "bin/app.psgi"]
8+
CMD plackup -p 3000 ${GREP_PLACKUP_SERVER_ARGS} bin/app.psgi

environments/production-docker.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# configuration file for production environment
2+
3+
# only log warning and error messsages
4+
log: "warning"
5+
6+
# log message to a file in logs/
7+
logger: "file"
8+
9+
# don't consider warnings critical
10+
warnings: 0
11+
12+
# hide errors
13+
show_errors: 0
14+
15+
# disable server tokens in production environments
16+
no_server_tokens: 1
17+
18+
grepcpan:
19+
nocache: 0
20+
maxworkers: 256
21+
root_dir: '/metacpan-grep-front-end'
22+
gitrepo: '/shared/metacpan_git'
23+
# binaries:
24+
# git: '/usr/bin/git'
25+
cache:
26+
directory: '/var/tmp'

0 commit comments

Comments
 (0)