- Add sample nginx conf file with ssl support - Add systemd service that keeps app running
		
			
				
	
	
		
			20 lines
		
	
	
		
			482 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			482 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=AssetTrack Inventory System
 | 
						|
After=network.target mysql.service
 | 
						|
 | 
						|
[Service]
 | 
						|
User=assettrack
 | 
						|
Group=assettrack
 | 
						|
WorkingDirectory=/opt/assettrack
 | 
						|
Environment="PATH=/usr/bin"
 | 
						|
Environment="FLASK_ENV=production"
 | 
						|
Environment="FLASK_SECRET_KEY=your-generated-secret-key-here"
 | 
						|
 | 
						|
# Using Gunicorn as WSGI server
 | 
						|
ExecStart=/usr/bin/gunicorn --workers 3 --bind unix:/opt/assettrack/assettrack.sock -m 007 app:app
 | 
						|
 | 
						|
Restart=always
 | 
						|
RestartSec=5
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=multi-user.target |