Make use of GUNICORN_CMD_ARGS
This commit is contained in:
		@@ -167,7 +167,7 @@ write_files:
 | 
				
			|||||||
    permissions: 744
 | 
					    permissions: 744
 | 
				
			||||||
    content: |
 | 
					    content: |
 | 
				
			||||||
      #!/bin/sh
 | 
					      #!/bin/sh
 | 
				
			||||||
      gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - --daemon morss
 | 
					      gunicorn --bind 0.0.0.0:${PORT:-8000} --preload --access-logfile - --daemon morss
 | 
				
			||||||
 | 
					
 | 
				
			||||||
runcmd:
 | 
					runcmd:
 | 
				
			||||||
  - update-ca-certificates
 | 
					  - update-ca-certificates
 | 
				
			||||||
@@ -491,6 +491,9 @@ entries. NB. When using `diskcache`, this is the cache max size in Bytes.
 | 
				
			|||||||
- `CACHE_LIFESPAN` (seconds) sets how often the cache must be trimmed (i.e. cut
 | 
					- `CACHE_LIFESPAN` (seconds) sets how often the cache must be trimmed (i.e. cut
 | 
				
			||||||
down to the number of items set in `CACHE_SIZE`). Defaults to 1min.
 | 
					down to the number of items set in `CACHE_SIZE`). Defaults to 1min.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Gunicorn also accepts command line arguments via the `GUNICORN_CMD_ARGS`
 | 
				
			||||||
 | 
					environment variable.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Content matching
 | 
					### Content matching
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The content of articles is grabbed with our own readability fork. This means
 | 
					The content of articles is grabbed with our own readability fork. This means
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								app.json
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								app.json
									
									
									
									
									
								
							@@ -5,7 +5,7 @@
 | 
				
			|||||||
			"value": 1,
 | 
								"value": 1,
 | 
				
			||||||
			"required": false
 | 
								"required": false
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		"GUNICORN": {
 | 
							"GUNICORN_CMD_ARGS": {
 | 
				
			||||||
			"value": "",
 | 
								"value": "",
 | 
				
			||||||
			"required": false
 | 
								"required": false
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								docker-entry.sh
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										2
									
								
								docker-entry.sh
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							@@ -4,7 +4,7 @@ if [ "$1" = "sh" ] || [ "$1" = "bash" ]; then
 | 
				
			|||||||
	exec $@
 | 
						exec $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
elif [ -z "$1" ] || [ "$@" = "run" ]; then
 | 
					elif [ -z "$1" ] || [ "$@" = "run" ]; then
 | 
				
			||||||
	gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss
 | 
						gunicorn --bind 0.0.0.0:${PORT:-8000} --preload --access-logfile - morss
 | 
				
			||||||
 | 
					
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	morss $@
 | 
						morss $@
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user