Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dockers
3f-timesheet
Commits
3ccab589
Commit
3ccab589
authored
Jul 06, 2026
by
shameelaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chnage password into env
parent
3d2a85db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
.env.example
+2
-2
entrypoint.sh
+8
-0
No files found.
.env.example
View file @
3ccab589
...
...
@@ -5,11 +5,11 @@ APP_URL=http://localhost
APP_NAME="E-Timesheet"
DB_CONNECTION=mysql
DB_HOST=1
92.168.1.119
DB_HOST=1
27.0.0.1
DB_PORT=3306
DB_DATABASE=timesheet
DB_USERNAME=root
DB_PASSWORD=
d3v__3f
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
...
...
entrypoint.sh
View file @
3ccab589
...
...
@@ -26,6 +26,14 @@ if [ ! -d "vendor" ]; then
}
fi
# Inject DB credentials from environment if provided by Portainer
if
[
!
-z
"
$DB_HOST
"
]
;
then
sed
-i
"s/^DB_HOST=.*/DB_HOST=
$DB_HOST
/"
/var/www/html/.env
fi
if
[
!
-z
"
$DB_PASSWORD
"
]
;
then
sed
-i
"s/^DB_PASSWORD=.*/DB_PASSWORD=
$DB_PASSWORD
/"
/var/www/html/.env
fi
# Generate app key if not set
if
[
-d
"vendor"
]
;
then
php artisan key:generate
--force
--no-interaction
2>/dev/null
||
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment