kopia lustrzana https://github.com/bugout-dev/moonstream
				
				
				
			Fixes to working backend deployment
							rodzic
							
								
									9e6fa856bb
								
							
						
					
					
						commit
						8e83a40193
					
				| 
						 | 
					@ -4,6 +4,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Main
 | 
					# Main
 | 
				
			||||||
APP_DIR="${APP_DIR:-/home/ubuntu/moonstream}"
 | 
					APP_DIR="${APP_DIR:-/home/ubuntu/moonstream}"
 | 
				
			||||||
 | 
					APP_BACKEND_DIR="${APP_DIR}/backend"
 | 
				
			||||||
AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"
 | 
					AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION:-us-east-1}"
 | 
				
			||||||
PYTHON_ENV_DIR="${PYTHON_ENV_DIR:-/home/ubuntu/moonstream-env}"
 | 
					PYTHON_ENV_DIR="${PYTHON_ENV_DIR:-/home/ubuntu/moonstream-env}"
 | 
				
			||||||
PYTHON="${PYTHON_ENV_DIR}/bin/python"
 | 
					PYTHON="${PYTHON_ENV_DIR}/bin/python"
 | 
				
			||||||
| 
						 | 
					@ -25,7 +26,7 @@ echo "Updating pip and setuptools"
 | 
				
			||||||
echo
 | 
					echo
 | 
				
			||||||
echo
 | 
					echo
 | 
				
			||||||
echo "Updating Python dependencies"
 | 
					echo "Updating Python dependencies"
 | 
				
			||||||
"${PIP}" install -r "${APP_DIR}/requirements.txt"
 | 
					"${PIP}" install -r "${APP_BACKEND_DIR}/requirements.txt"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo
 | 
					echo
 | 
				
			||||||
echo
 | 
					echo
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,7 +5,7 @@ After=network.target
 | 
				
			||||||
[Service]
 | 
					[Service]
 | 
				
			||||||
User=ubuntu
 | 
					User=ubuntu
 | 
				
			||||||
Group=www-data
 | 
					Group=www-data
 | 
				
			||||||
WorkingDirectory=/home/ubuntu/moonstream
 | 
					WorkingDirectory=/home/ubuntu/moonstream/backend
 | 
				
			||||||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
 | 
					EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
 | 
				
			||||||
ExecStart=/home/ubuntu/moonstream-env/bin/uvicorn --host 0.0.0.0 --port 7481 --workers 8 moonstream.api:app
 | 
					ExecStart=/home/ubuntu/moonstream-env/bin/uvicorn --host 0.0.0.0 --port 7481 --workers 8 moonstream.api:app
 | 
				
			||||||
SyslogIdentifier=moonstream
 | 
					SyslogIdentifier=moonstream
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@ fastapi==0.66.0
 | 
				
			||||||
h11==0.12.0
 | 
					h11==0.12.0
 | 
				
			||||||
idna==3.2
 | 
					idna==3.2
 | 
				
			||||||
jmespath==0.10.0
 | 
					jmespath==0.10.0
 | 
				
			||||||
-e git+ssh://git@github.com/bugout-dev/moonstream.git@b9c828fc7f811af88a9f3a45dd7f5c4053433366#egg=moonstreamdb&subdirectory=db
 | 
					-e git+https://git@github.com/bugout-dev/moonstream.git@b9c828fc7f811af88a9f3a45dd7f5c4053433366#egg=moonstreamdb&subdirectory=db
 | 
				
			||||||
mypy==0.910
 | 
					mypy==0.910
 | 
				
			||||||
mypy-extensions==0.4.3
 | 
					mypy-extensions==0.4.3
 | 
				
			||||||
pathspec==0.9.0
 | 
					pathspec==0.9.0
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue