Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aphp1_classwork80
Project
Project
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
Egor Kremnev
aphp1_classwork80
Commits
65faa5e5
Commit
65faa5e5
authored
Aug 22, 2023
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
c826f95b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
apply-update.sh
scripts/apply-update.sh
+5
-2
No files found.
scripts/apply-update.sh
View file @
65faa5e5
...
@@ -89,8 +89,9 @@ sed -i -e 's/^\(DB_PASSWORD=\).*/\1'$([ -n "$DB_PASSWORD_ENV" ] && echo "$DB_PAS
...
@@ -89,8 +89,9 @@ sed -i -e 's/^\(DB_PASSWORD=\).*/\1'$([ -n "$DB_PASSWORD_ENV" ] && echo "$DB_PAS
cat
${
APPLICATION_ROOT_PATH
}
/.env
>
${
PROJECT_ROOT
}
/.env
cat
${
APPLICATION_ROOT_PATH
}
/.env
>
${
PROJECT_ROOT
}
/.env
info
"# Create database backup [
${
DB_DATABASE
}
] >
${
DB_DUMP_PATH
}
"
# info "# Create database backup [${DB_DATABASE}] > ${DB_DUMP_PATH}"
mysqldump
-u
${
DB_DATABASE
}
>
${
DB_DUMP_PATH
}
# Здесь требуется настройка доступа к базе данных да пользователя от имени кого будет выполнятся бекап
# mysqldump -u root ${DB_DATABASE} > ${DB_DUMP_PATH}
info
"# Set application key"
info
"# Set application key"
php artisan key:generate
php artisan key:generate
...
@@ -119,3 +120,5 @@ info "# Destroy script"
...
@@ -119,3 +120,5 @@ info "# Destroy script"
rm
apply-update.sh
rm
apply-update.sh
success
"Update successfully!"
success
"Update successfully!"
CREATE USER
'demo'
@
'localhost'
IDENTIFIED BY
'root123'
;
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