Heroku click to deploy
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			incl. workaround for their weird use of entrypoint
This commit is contained in:
		@@ -7,4 +7,5 @@ RUN pip3 install --no-cache-dir /app[full] gunicorn
 | 
			
		||||
 | 
			
		||||
USER 1000:1000
 | 
			
		||||
 | 
			
		||||
ENTRYPOINT ["/app/docker-entry.sh"]
 | 
			
		||||
ENTRYPOINT ["/bin/sh", "/app/docker-entry.sh"]
 | 
			
		||||
CMD ["run"]
 | 
			
		||||
 
 | 
			
		||||
@@ -92,6 +92,8 @@ Then execute
 | 
			
		||||
docker-compose build --no-cache --pull
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
One-click Heroku deployment: https://heroku.com/deploy?template=https://github.com/pictuga/morss
 | 
			
		||||
 | 
			
		||||
## Run
 | 
			
		||||
 | 
			
		||||
morss will auto-detect what "mode" to use.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
#! /bin/sh
 | 
			
		||||
 | 
			
		||||
if [ ! -z "$1" ]; then
 | 
			
		||||
	morss $@
 | 
			
		||||
if [ -z "$1" ] || [ "$@" = "run" ]; then
 | 
			
		||||
	gunicorn --bind 0.0.0.0:${PORT:-8000} -w 4 --preload --access-logfile - morss
 | 
			
		||||
else
 | 
			
		||||
	gunicorn --bind 0.0.0.0:8000 -w 4 --preload --access-logfile - morss
 | 
			
		||||
	morss $@
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								heroku.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								heroku.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
setup:
 | 
			
		||||
  config:
 | 
			
		||||
    DEBUG: 1
 | 
			
		||||
    CACHE: diskcache
 | 
			
		||||
    CACHE_SIZE: 1073741824
 | 
			
		||||
 | 
			
		||||
build: 
 | 
			
		||||
  docker:
 | 
			
		||||
    web: Dockerfile
 | 
			
		||||
		Reference in New Issue
	
	Block a user