13 lines
		
	
	
		
			270 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			270 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| SCRIPT_PATH="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 | |
| pushd "$SCRIPT_PATH" >/dev/null 2>&1
 | |
| 
 | |
| if [ -e ./pyenv/bin/activate ]; then
 | |
|   source ./pyenv/bin/activate
 | |
| fi
 | |
| 
 | |
| gunicorn --bind=127.0.0.1:5000 sensor_interface.routes:app
 | |
| 
 | |
| popd >/dev/null 2>&1
 |