- Set up IDE...
- Add virtual environment for IDE
- PyCharm -> python interpreter
- Add virtual environment for IDE
- Add virtual environment for shell (WSL)
- Linux:
pip -m venv venv_linux
. venv_linux/bin/activate
. env.sh
pip install -r requirements.txt
- Windows:
- Just use IDE virtual environment
venv/Scripts/activate.bat
env.bat
pip install -r requirements.txt
- Linux:
- Set up Docker...
- Open Docker Hub
- Open shell connected to Docker Hub (WSL)
- run
docker-compose up -d
- run
docker-compose stop reels
- run
docker-compose stop worker
- Open shell window (WSL) to run server request handler locally (reels)
- run
python manage.py migrate
(set up django default database info) - run
python manage.py shell
(setting up reels database info) and in the shell...- run
from reels.sql.sql import get_sql_handler
- run
get_sql_handler().init_database()
- exit with
exit()
- run
- run
python manage.py runserver
- run
- Open shell window (WSL) to run server worker for serving compilation requests
- run
celery -A pegasus worker -l info
- run
- file_type: str
- gamertag: str
- gamertag_position: list(str, str)
- logo_position: list(str, str)
- audio_start: int
- audio_end: int
- extras: bool
Example:
{
"file_type": "mp4",
"logo_position": ["left", "bottom"],
"extras": true
}