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
8cc4e222
Commit
8cc4e222
authored
1 year ago
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
1a230c00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
apply-update.sh
scripts/apply-update.sh
+2
-0
deploy-update-package.sh
scripts/deploy-update-package.sh
+1
-2
No files found.
scripts/apply-update.sh
View file @
8cc4e222
...
...
@@ -80,6 +80,8 @@ info "# Database folder permission"
chmod
-R
775 database
chown
-R
$(
whoami
)
database
cp
scripts/nginx/default /etc/nginx/sites-available/default
info
"# Restart nginx server"
service nginx restart
...
...
This diff is collapsed.
Click to expand it.
scripts/deploy-update-package.sh
View file @
8cc4e222
...
...
@@ -22,7 +22,7 @@ PATH_TO_NGINX_CONFIG_FILE=${PATH_TO_SCRIPTS_DIR}/nginx/default.conf
APPLICATION_ROOT_PATH
=
/home/deploy
echo
"APP_PATH
${
APP_PATH
}
"
echo
"PATH_TO_SCRIPTS_DIR
${
APP_PATH
}
"
echo
"PATH_TO_SCRIPTS_DIR
${
PATH_TO_SCRIPTS_DIR
}
"
# Archive name
LATEST_ARTIFACT_NAME
=
application-
${
VERSION
}
.tar.gz
...
...
@@ -42,7 +42,6 @@ script_execution_dir=$(pwd)
info
"Scripts run under
${
script_execution_dir
}
directory"
scp
${
PATH_TO_SCRIPTS_DIR
}
/apply-update.sh
${
HOST
}
:
${
APPLICATION_ROOT_PATH
}
scp
${
PATH_TO_NGINX_CONFIG_FILE
}
${
HOST
}
:/etc/nginx/sites-available/default
scp
${
LATEST_ARTIFACT_PATH
}
${
HOST
}
:
${
APPLICATION_ROOT_PATH
}
echo
${
VERSION
}
>
VERSION
...
...
This diff is collapsed.
Click to expand it.
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