rasodu / DLEMP

0 stars 0 forks source link

Enviornment variable to define base directory of DLEMP installation is added. #6

Closed rasodu closed 8 years ago

rasodu commented 8 years ago

Try to solve issue #2

rasodu commented 8 years ago

Installation stpes: 1) Remove vendor directory if it exist : rm -r vendor 2) Get DLEMP files

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/rasodu/DLEMP"
        }
    ],
    "require": {
        "rasodu/dlemp": "dev-master"
    }
}

3) mkdir public 4) mkdir -p docker/docker-config && cp vendor/rasodu/dlemp/docker/docker-config/letsencrypt-cli.ini docker/docker-config/ 5) Only if you want to deploy(Optional): Set email and domain in 'letsencrypt-cli.ini' 6) cp vendor/rasodu/dlemp/*.yml . && cp vendor/rasodu/dlemp/.env . && cp vendor/rasodu/dlemp/.dockerignore . 7) Uncomment line 'vendor/rasodu/dlemp/' and comment out line 'DLEMP_BASE_DIR=' in '.env' file. 8) Only if using docker 1.10 or before. Otherwise variable value will be read from '.env' file.

unset DLEMP_BASE_DIR
export DLEMP_BASE_DIR=vendor/rasodu/dlemp/
echo $DLEMP_BASE_DIR