cluster_management/launch_script.py
def load_git_repo():
    """ Get a local copy of the git repository """
    # Git clone the repository into the remote beiwe-backend folder
    # git operations print to both stderr *and* stdout, so redirect them both to the log file
    run(f'cd {REMOTE_HOME_DIR}; git clone https://github.com/onnela-lab/beiwe-backend.git 2>> {LOG_FILE}')

    if DEV_MODE:
        branch = environ.get("DEV_BRANCH", "development")
    else:
        branch = "main"

    run(f'cd {REMOTE_HOME_DIR}/beiwe-backend; git checkout {branch} 1>> {LOG_FILE} 2>> {LOG_FILE}')
 Get a local copy of the git repository 
Get a local copy of the git repository
Get a local copy of the git repository
def load_git_repo():
    run(f'cd {REMOTE_HOME_DIR}; git clone https://github.com/onnela-lab/beiwe-backend.git 2>> {LOG_FILE}')
    if DEV_MODE:
        branch = environ.get("DEV_BRANCH", "development")
    else:
        branch = "main"
    run(f'cd {REMOTE_HOME_DIR}/beiwe-backend; git checkout {branch} 1>> {LOG_FILE} 2>> {LOG_FILE}')
def load_git_repo ( ) : run ( f'cd {REMOTE_HOME_DIR}; git clone https://github.com/onnela-lab/beiwe-backend.git 2>> {LOG_FILE}' ) if DEV_MODE : branch = environ . get ( "DEV_BRANCH" , "development" ) else : branch = "main" run ( f'cd {REMOTE_HOME_DIR}/beiwe-backend; git checkout {branch} 1>> {LOG_FILE} 2>> {LOG_FILE}' )
Get a local copy of the git repository
Get a local copy of the git repository
""" Get a local copy of the git repository """ # Git clone the repository into the remote beiwe-backend folder # git operations print to both stderr *and* stdout, so redirect them both to the log file