Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12241636
setup-container
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
627 B
Referenced Files
None
Subscribers
None
setup-container
View Options
#!/usr/bin/env bash
pushd
/var/wwwroot/default
# Generates a unique application key in .env
function
generate_key
{
KEY
=
`
php artisan key:generate --show
`
if
[
-f .env
]
;
then
echo
""
>> .env
fi
echo
"APP_KEY=
$KEY
"
>> .env
}
# Determines if APP_KEY is missing
function
is_app_key_missing
{
if
[
-v APP_KEY
]
;
then
return
0
fi
if
[
! -f .env
]
;
then
return
1
fi
grep -q
'APP_KEY='
.env
return
$?
}
if
[
-z
"
$NO_INSTALL
"
]
;
then
is_app_key_missing
if
[
$?
-eq
1
]
;
then
generate_key
fi
php artisan config:cache
php artisan migrate --force
gulp --production
fi
# We're done
popd
touch .initialized
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sun, Oct 12, 05:33 (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3062305
Default Alt Text
setup-container (627 B)
Attached To
Mode
rDGROVE Docker image for Auth Grove
Attached
Detach File
Event Timeline
Log In to Comment