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
dbec7c8c
Commit
dbec7c8c
authored
Aug 22, 2023
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
d72b4878
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
apply-update.sh
scripts/apply-update.sh
+9
-8
build.sh
scripts/build.sh
+1
-1
create-deployment-package.sh
scripts/create-deployment-package.sh
+2
-2
No files found.
scripts/apply-update.sh
View file @
dbec7c8c
#!/usr/bin/env bash
#!/usr/bin/env bash
# shellcheck disable=SC2086
# shellcheck disable=SC2086
set
-e
echo
"================================"
echo
"================================"
echo
"<===== Run apply-update.sh ====>"
echo
"<===== Run apply-update.sh ====>"
echo
"================================"
echo
"================================"
...
@@ -11,7 +13,6 @@ if [[ "$(id -u)" != "0" ]]; then
...
@@ -11,7 +13,6 @@ if [[ "$(id -u)" != "0" ]]; then
exit
1
exit
1
fi
fi
set
-e
INSTANCE_NAME
=
${
1
}
INSTANCE_NAME
=
${
1
}
LATEST_ARTIFACT_NAME
=
${
2
}
LATEST_ARTIFACT_NAME
=
${
2
}
APPLICATION_ROOT_PATH
=
${
3
}
APPLICATION_ROOT_PATH
=
${
3
}
...
@@ -31,11 +32,11 @@ STASH_DB_DIR=/tmp/db/
...
@@ -31,11 +32,11 @@ STASH_DB_DIR=/tmp/db/
STASH_DB_PATH
=
${
STASH_DB_DIR
}
database.
${
INSTANCE_NAME
}
.sqlite
STASH_DB_PATH
=
${
STASH_DB_DIR
}
database.
${
INSTANCE_NAME
}
.sqlite
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
)
"
}
}
cd
${
APPLICATION_ROOT_PATH
}
cd
${
APPLICATION_ROOT_PATH
}
...
...
scripts/build.sh
View file @
dbec7c8c
...
@@ -46,5 +46,5 @@ php artisan dusk:chrome-driver
...
@@ -46,5 +46,5 @@ php artisan dusk:chrome-driver
nohup
bash
-c
"php artisan serve --env=dusk --port=4343 2>&1 &"
&&
sleep
5
nohup
bash
-c
"php artisan serve --env=dusk --port=4343 2>&1 &"
&&
sleep
5
php artisan dusk
php artisan dusk
rm
-rf
database/database.
*
.sqlite
success
"Completed testing!"
success
"Completed testing!"
scripts/create-deployment-package.sh
View file @
dbec7c8c
...
@@ -11,11 +11,11 @@ VERSION=${2}
...
@@ -11,11 +11,11 @@ VERSION=${2}
ENV_NAME
=
.env.example
ENV_NAME
=
.env.example
info
()
{
info
()
{
echo
-e
"
\e
[33m[Info]
\e
[33m
$1
\e
[39m"
echo
-e
"
\e
[33m[Info]
\e
[33m
$1
\e
[39m"
}
}
success
()
{
success
()
{
echo
-e
"
\e
[32m[Success]
\e
[32m
$1
\e
[39m"
echo
-e
"
\e
[32m[Success]
\e
[32m
$1
\e
[39m"
}
}
info
"Build version #
${
VERSION
}
"
info
"Build version #
${
VERSION
}
"
info
"./build.sh starts here..."
info
"./build.sh starts here..."
...
...
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