소스 검색

config.sample.yml: fix syntax for using ENV variables

The variable name must be enclosed in parentheses, otherwise it
is interpreted verbatim.

Move this tip to the top of the file, since it applies to all fields,
not just the 'db' field.
Dan Hemberger 8 년 전
부모
커밋
9891d93c0d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      config.sample.yml

+ 1 - 1
config.sample.yml

@@ -3,6 +3,7 @@
 #######################################################################
 # Full explanation + examples in the documentation:
 # https://docs.requarks.io/wiki/install
+# You can use an ENV variable by using $(ENV_VAR_NAME) as the value
 
 # ---------------------------------------------------------------------
 # Title of this site
@@ -107,7 +108,6 @@ sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz
 # ---------------------------------------------------------------------
 # Database Connection String
 # ---------------------------------------------------------------------
-# You can also use an ENV variable by using $ENV_VAR_NAME as the value
 
 db: mongodb://localhost:27017/wiki