committed by
GitHub
5 changed files with 42 additions and 5 deletions
@ -0,0 +1,7 @@ |
|||
LARAVEL_APP_KEY_FILE_PATH="$(readlink -f $(dirname "${BASH_SOURCE[0]}"))/data/laravel-app-key.txt" |
|||
|
|||
if [[ -f "${LARAVEL_APP_KEY_FILE_PATH}" ]]; then |
|||
# we remove newlines/carriage-returns from the output which cause laravel to fail to parse the APP_KEY. |
|||
# these may be introduced by users accidentally editing the file. |
|||
export APP_KEY=$(cat "${LARAVEL_APP_KEY_FILE_PATH}" | tr -d '\r\n') |
|||
fi |
Loading…
Reference in new issue