Skip to content
Snippets Groups Projects
Select Git revision
  • 4624b6f969685736d1e9762985d438f12e671f15
  • mui5-annotation-on-video-stable default
  • get_setter_canvasSizeInformations
  • fix-error-div-into-p
  • annotation-on-video-v2
  • detached
  • annotation-on-video-r17
  • mui5
  • mui5-react-18
  • jacob-test
  • annotation-on-video protected
  • master
  • test-antoinev1
  • 20-fetch-thumbnail-on-annotation
  • add-research-field
  • Save
  • add-plugin
  • 14-wip-no-seek-to
  • 14-bug-on-video-time-control
  • 9_wip_videotests
  • _upgrade_material_ui
  • latest-tetras-16
  • v3.3.0
  • v3.2.0
  • v3.1.1
  • v3.1.0
  • v3.0.0
  • v3.0.0-rc.7
  • v3.0.0-rc.6
  • v3.0.0-rc.5
  • v3.0.0-rc.4
  • v3.0.0-rc.3
  • v3.0.0-rc.2
  • v3.0.0-rc.1
  • v3.0.0-beta.10
  • v3.0.0-beta.9
  • v3.0.0-beta.8
  • v3.0.0-beta.7
  • v3.0.0-beta.6
  • v3.0.0-beta.5
  • v3.0.0-beta.3
41 results

MiradorMenuButton.js

Blame
  • entrypoint.sh 1.01 KiB
    base_dir=/sites/memorekall/www
    pushd $base_dir
    pushd $base_dir/web_dev
    
    # Install dependencies using local composer not global because of php 5.5
    composer install
    
    popd
    
    # Create required dirs
    DIRS="web_dev/var/log web_dev/var/cache"
    for d in $DIRS; do
        mkdir -p $d
    done
    
    popd
    
    xdebug_conf="$PHP_INI_DIR/conf.d/xdebug.ini"
    npm install
    if [ "$ENV" == "prod" ]; then
        rm  $xdebug_conf
        npm run build
    else
        if [[ "$(uname -r)" =~ "linuxkit" ]]; then
            # Connect back does not work in non Linux, deactivate it and use host.docker.internal url
            sed  -i -e "s/xdebug.discover_client_host=true/xdebug.discover_client_host=false/" $xdebug_conf
            echo "" >> $xdebug_conf
            echo "xdebug.client_host = host.docker.internal" >> $xdebug_conf
        fi
        npm run watch &
    fi
    
    # Fix permissions
    for d in var vendor assets public node_modules legacy log src; do
        chown -R :www-data $base_dir/web_dev/$d
        chmod -R g+w $base_dir/web_dev/$d
    done
    chown -R 999:999 $base_dir/web_dev/mysql
    
    apache2ctl -DFOREGROUND