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
d1326914
Commit
d1326914
authored
Aug 22, 2023
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
8de2fb60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
apply-update.sh
scripts/apply-update.sh
+9
-8
No files found.
scripts/apply-update.sh
View file @
d1326914
...
@@ -57,6 +57,15 @@ info "# Extracting app package to ${PROJECT_ROOT}"
...
@@ -57,6 +57,15 @@ info "# Extracting app package to ${PROJECT_ROOT}"
mkdir
-p
${
PROJECT_ROOT
}
mkdir
-p
${
PROJECT_ROOT
}
tar
-xzf
${
LATEST_ARTIFACT_NAME
}
-C
${
PROJECT_ROOT
}
tar
-xzf
${
LATEST_ARTIFACT_NAME
}
-C
${
PROJECT_ROOT
}
info
"# Setup permission for cache dir and storage"
chmod
-R
777
${
PROJECT_ROOT
}
/storage/
chmod
-R
777
${
PROJECT_ROOT
}
/bootstrap/cache
info
"# Set user to .env file"
chown
root:
${
PROJECT_ROOT
}
/.env
cd
${
PROJECT_ROOT
}
info
"# Set environments"
info
"# Set environments"
source
.env
source
.env
env
env
...
@@ -79,15 +88,7 @@ sed -i '' 's/^\(DB_PASSWORD=\).*/\1'$([ -n "$DB_PASSWORD_ENV" ] && echo "$DB_PAS
...
@@ -79,15 +88,7 @@ sed -i '' 's/^\(DB_PASSWORD=\).*/\1'$([ -n "$DB_PASSWORD_ENV" ] && echo "$DB_PAS
info
"# Create database backup"
info
"# Create database backup"
mysqldump
-u
$(
[
-n
"
$DB_DATABASE_ENV
"
]
&&
echo
"
$DB_DATABASE_ENV
"
||
echo
"
$DB_DATABASE
"
)
>
DB_DUMP_PATH
mysqldump
-u
$(
[
-n
"
$DB_DATABASE_ENV
"
]
&&
echo
"
$DB_DATABASE_ENV
"
||
echo
"
$DB_DATABASE
"
)
>
DB_DUMP_PATH
info
"# Setup permission for cache dir and storage"
chmod
-R
777
${
PROJECT_ROOT
}
/storage/
chmod
-R
777
${
PROJECT_ROOT
}
/bootstrap/cache
info
"# Set user to .env file"
chown
root:
${
PROJECT_ROOT
}
/.env
info
"# Set application key"
info
"# Set application key"
cd
${
PROJECT_ROOT
}
php artisan key:generate
php artisan key:generate
info
"# Optimizing Configuration Loading..."
info
"# Optimizing Configuration Loading..."
...
...
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