Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3777801
D259.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
400 B
Referenced Files
None
Subscribers
None
D259.diff
View Options
diff --git a/files/usr/local/bin/setup-container b/files/usr/local/bin/setup-container
--- a/files/usr/local/bin/setup-container
+++ b/files/usr/local/bin/setup-container
@@ -5,7 +5,9 @@
# Generates a unique application key in .env
function generate_key {
KEY=`php artisan key:generate --show`
- echo "" >> .env
+ if [ -f .env ]; then
+ echo "" >> .env
+ fi
echo "APP_KEY=$KEY" >> .env
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 02:36 (21 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263791
Default Alt Text
D259.diff (400 B)
Attached To
Mode
D259: Improve .env autogenerate
Attached
Detach File
Event Timeline
Log In to Comment