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
f689ff77
Commit
f689ff77
authored
Aug 22, 2023
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
dbec7c8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
deploy-update-package.sh
scripts/deploy-update-package.sh
+3
-3
No files found.
scripts/deploy-update-package.sh
View file @
f689ff77
...
@@ -19,7 +19,7 @@ VERSION=${3}
...
@@ -19,7 +19,7 @@ VERSION=${3}
APP_PATH
=
${
4
}
APP_PATH
=
${
4
}
PATH_TO_SCRIPTS_DIR
=
${
4
}
/scripts
PATH_TO_SCRIPTS_DIR
=
${
4
}
/scripts
PATH_TO_NGINX_CONFIG_FILE
=
${
PATH_TO_SCRIPTS_DIR
}
/nginx/default.conf
PATH_TO_NGINX_CONFIG_FILE
=
${
PATH_TO_SCRIPTS_DIR
}
/nginx/default.conf
APPLICATION_ROOT_PATH
=
~
APPLICATION_ROOT_PATH
=
/home/demo
# Archive name
# Archive name
LATEST_ARTIFACT_NAME
=
application-
${
VERSION
}
.tar.gz
LATEST_ARTIFACT_NAME
=
application-
${
VERSION
}
.tar.gz
...
@@ -28,11 +28,11 @@ LATEST_ARTIFACT_NAME=application-${VERSION}.tar.gz
...
@@ -28,11 +28,11 @@ LATEST_ARTIFACT_NAME=application-${VERSION}.tar.gz
LATEST_ARTIFACT_PATH
=
${
HOME
}
/artifacts/
${
LATEST_ARTIFACT_NAME
}
LATEST_ARTIFACT_PATH
=
${
HOME
}
/artifacts/
${
LATEST_ARTIFACT_NAME
}
info
()
{
info
()
{
echo
-e
"
\e
[33m[Info]
\e
[33m
$1
\e
[39m
$(for
i
in
{
12..21
}
;
do
echo
-en
"
\e
[33;1;
${
i
}
m>
\e
[0m"
;
done
;
echo
)
"
echo
-e
"
\e
[33m[Info]
\e
[33m
$1
\e
[39m
$(for
i
in
{
12..21
}
;
do
echo
-en
"
\e
[33;1;
${
i
}
m>
\e
[0m"
;
done
;
echo
)
"
}
}
success
()
{
success
()
{
echo
-e
"
\e
[32m[Success]
\e
[32m
$1
\e
[39m
$(for
i
in
{
12..21
}
;
do
echo
-en
"
\e
[32;1;
${
i
}
m>
\e
[0m"
;
done
;
echo
)
"
echo
-e
"
\e
[32m[Success]
\e
[32m
$1
\e
[39m
$(for
i
in
{
12..21
}
;
do
echo
-en
"
\e
[32;1;
${
i
}
m>
\e
[0m"
;
done
;
echo
)
"
}
}
script_execution_dir
=
$(
pwd
)
script_execution_dir
=
$(
pwd
)
...
...
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