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
02d7c0a0
Commit
02d7c0a0
authored
Aug 22, 2023
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
238c85b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
apply-update.sh
scripts/apply-update.sh
+4
-0
deploy-update-package.sh
scripts/deploy-update-package.sh
+3
-1
No files found.
scripts/apply-update.sh
View file @
02d7c0a0
...
@@ -19,6 +19,10 @@ LATEST_ARTIFACT_NAME=${2}
...
@@ -19,6 +19,10 @@ LATEST_ARTIFACT_NAME=${2}
APPLICATION_ROOT_PATH
=
${
3
}
APPLICATION_ROOT_PATH
=
${
3
}
VERSION
=
$(
cat
${
APPLICATION_ROOT_PATH
}
/VERSION
)
VERSION
=
$(
cat
${
APPLICATION_ROOT_PATH
}
/VERSION
)
DB_PASSWORD_ENV
=
${
4
}
DB_USERNAME_ENV
=
${
5
}
DB_HOST_ENV
=
${
6
}
DB_PORT_ENV
=
${
7
}
PROJECT_ROOT
=
${
APPLICATION_ROOT_PATH
}
/application
PROJECT_ROOT
=
${
APPLICATION_ROOT_PATH
}
/application
BACKUP_DIR
=
~/application_backups
BACKUP_DIR
=
~/application_backups
...
...
scripts/deploy-update-package.sh
View file @
02d7c0a0
...
@@ -21,6 +21,8 @@ PATH_TO_SCRIPTS_DIR=${4}/scripts
...
@@ -21,6 +21,8 @@ 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
=
/home/demo
APPLICATION_ROOT_PATH
=
/home/demo
DB_PASSWORD_ENV
=
${
5
}
# Archive name
# Archive name
LATEST_ARTIFACT_NAME
=
application-
${
VERSION
}
.tar.gz
LATEST_ARTIFACT_NAME
=
application-
${
VERSION
}
.tar.gz
...
@@ -49,5 +51,5 @@ scp VERSION ${HOST}:${APPLICATION_ROOT_PATH}
...
@@ -49,5 +51,5 @@ scp VERSION ${HOST}:${APPLICATION_ROOT_PATH}
echo
${
HOST
}
echo
${
HOST
}
ssh
${
HOST
}
<<
EOL
ssh
${
HOST
}
<<
EOL
chmod +x
${
APPLICATION_ROOT_PATH
}
/apply-update.sh
chmod +x
${
APPLICATION_ROOT_PATH
}
/apply-update.sh
${
APPLICATION_ROOT_PATH
}
/apply-update.sh
${
INSTANCE_NAME
}
${
LATEST_ARTIFACT_NAME
}
${
APPLICATION_ROOT_PATH
}
${
APPLICATION_ROOT_PATH
}
/apply-update.sh
${
INSTANCE_NAME
}
${
LATEST_ARTIFACT_NAME
}
${
APPLICATION_ROOT_PATH
}
${
DB_PASSWORD_ENV
}
EOL
EOL
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