mirror of
				https://git.wownero.com/lza_menace/suchwow.git
				synced 2024-08-15 01:03:19 +00:00 
			
		
		
		
	fuck this docker shit, gunicorn local
This commit is contained in:
		
							parent
							
								
									936daacc05
								
							
						
					
					
						commit
						ca0c515ddc
					
				
					 5 changed files with 8 additions and 28 deletions
				
			
		| 
						 | 
					@ -1,6 +0,0 @@
 | 
				
			||||||
data
 | 
					 | 
				
			||||||
flask_session
 | 
					 | 
				
			||||||
bin
 | 
					 | 
				
			||||||
.venv
 | 
					 | 
				
			||||||
.git
 | 
					 | 
				
			||||||
.idea
 | 
					 | 
				
			||||||
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -7,4 +7,3 @@ __pycache__
 | 
				
			||||||
*sql
 | 
					*sql
 | 
				
			||||||
flask_session
 | 
					flask_session
 | 
				
			||||||
config.py
 | 
					config.py
 | 
				
			||||||
docker-compose.*.yaml
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +0,0 @@
 | 
				
			||||||
FROM python:slim
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
WORKDIR /srv
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
COPY . .
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
RUN pip3 install -r requirements.txt
 | 
					 | 
				
			||||||
							
								
								
									
										8
									
								
								bin/prod
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								bin/prod
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,8 @@
 | 
				
			||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					source .venv/bin/activate
 | 
				
			||||||
 | 
					export FLASK_APP=suchwow/app.py
 | 
				
			||||||
 | 
					export FLASK_SECRETS=config.py
 | 
				
			||||||
 | 
					export FLASK_DEBUG=0
 | 
				
			||||||
 | 
					export FLASK_ENV=production
 | 
				
			||||||
 | 
					gunicorn --bind 0.0.0.0:4000 "suchwow.app:app" -D
 | 
				
			||||||
| 
						 | 
					@ -1,14 +0,0 @@
 | 
				
			||||||
version: '3'
 | 
					 | 
				
			||||||
services:
 | 
					 | 
				
			||||||
  suchwow:
 | 
					 | 
				
			||||||
    build:
 | 
					 | 
				
			||||||
      context: .
 | 
					 | 
				
			||||||
    command: gunicorn --bind 0.0.0.0:4000 "suchwow.app:app"
 | 
					 | 
				
			||||||
    labels:
 | 
					 | 
				
			||||||
      - "traefik.http.routers.http.rule=Host(`localhost`)"
 | 
					 | 
				
			||||||
      - "traefik.http.routers.http.entrypoints=http"
 | 
					 | 
				
			||||||
    environment:
 | 
					 | 
				
			||||||
      FLASK_SECRETS: config.py
 | 
					 | 
				
			||||||
      FLASK_APP: suchwow/app.py
 | 
					 | 
				
			||||||
    ports:
 | 
					 | 
				
			||||||
      - 4000:4000
 | 
					 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue