[enh] better server with install.sh
This commit is contained in:
		
							parent
							
								
									42ccba832e
								
							
						
					
					
						commit
						9aa91985c9
					
				| @ -9,8 +9,6 @@ services: | ||||
|   db: | ||||
|     env_file: .env | ||||
|     image: redis:6-alpine | ||||
|     ports: | ||||
|       - "6379:6379" | ||||
|     volumes: | ||||
|       - laserrdb:/var/lib/redis | ||||
|     command: ["redis-server", "--appendonly", "yes"] | ||||
							
								
								
									
										17
									
								
								server/install.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								server/install.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| apt update | ||||
| apt install -y --no-install-recommends build-essential\ | ||||
|  gcc\ | ||||
|  libagg2-dev\ | ||||
|  libpotrace-dev\ | ||||
|  nginx-light\ | ||||
|  pkg-config\ | ||||
|  python-dev\ | ||||
|  redis-server | ||||
| rm -f /etc/nginx/sites-enabled/* | ||||
| pip3 install flask numpy pillow redis | ||||
| pip3 install pypotrace | ||||
| cd /opt | ||||
| git clone https://git.interhacker.space/teamlaser/laser-app | ||||
| cp /opt/teamlaser/laser-app/files/nginx/sites-enabled/site.conf /etc/nginx/sites-enabled | ||||
| 
 | ||||
| 
 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user