소스 검색

Merge pull request #1166 from spk/fix_example_env_file

Docs: fix env_file example
Aanand Prasad 10 년 전
부모
커밋
4f95e81c6d
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      docs/yml.md

+ 5 - 1
docs/yml.md

@@ -173,8 +173,12 @@ env_file:
   - /opt/secrets.env
 ```
 
+Compose expects each line in an env file to be in `VAR=VAL` format. Lines
+beginning with `#` (i.e. comments) are ignored, as are blank lines.
+
 ```
-RACK_ENV: development
+# Set Rails/Rack environment
+RACK_ENV=development
 ```
 
 ### extends