kapsikkum-unmanic – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #!/usr/bin/env bash
2 ###
3 # File: local_dev_denv.sh
4 # Project: devops
5 # File Created: Tuesday, 17th May 2022 6:55:32 pm
6 # Author: Josh.5 (jsunnex@gmail.com)
7 # -----
8 # Last Modified: Tuesday, 17th May 2022 8:05:25 pm
9 # Modified By: Josh.5 (jsunnex@gmail.com)
10 ###
11 #
12 # After running this script you can run unmanic with the following commands:
13 #
14 # source venv/bin/activate
15 # export HOME_DIR="${PWD}/dev_environment"
16 # unmanic
17 #
18  
19 script_path=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
20 project_root=$(readlink -e ${script_path}/..)
21  
22 pushd "${project_root}" || exit 1
23  
24 # Checkout all submodules
25 git submodule update --init --recursive
26  
27 # Ensure we have created a venv
28 if [[ ! -e venv/bin/activate ]]; then
29 python3 -m venv venv
30 fi
31  
32 # Active the venv
33 source venv/bin/activate
34  
35 # Install all Unmanic requirements
36 python3 -m pip install -r requirements.txt
37 python3 -m pip install -r requirements-dev.txt
38  
39 # Install the project to the venv
40 devops/frontend_install.sh
41 python3 setup.py develop
42  
43 popd || exit 1