Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
O
openagua
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
103
Issues
103
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Flow Directions
openagua
Commits
fbffbe0a
Commit
fbffbe0a
authored
Feb 23, 2019
by
david
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update deploy script
parent
15dbf5ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
.gitlab-deploy.sh
.gitlab-deploy.sh
+2
-2
No files found.
.gitlab-deploy.sh
View file @
fbffbe0a
...
...
@@ -12,8 +12,8 @@ for i in "${!array[@]}"; do
ssh ubuntu@
${
array
[i]
}
"source ~/Env/oa/bin/activate && pip install -r ~/OpenAgua/requirements.txt"
ssh ubuntu@
${
array
[i]
}
"sudo cd ~/OpenAgua && yarn install"
# 2. copy build files to server
rsync
-avzh
./openagua/static/dist ubuntu@
${
array
[i]
}
:/home/ubuntu/OpenAgua/openagua/static/dist
rsync
-avzh
./openagua/templates/dist ubuntu@
${
array
[i]
}
:/home/ubuntu/OpenAgua/openagua/templates/dist
rsync
-avzh
ssh
./openagua/static/dist ubuntu@
${
array
[i]
}
:/home/ubuntu/OpenAgua/openagua/static/dist
rsync
-avzh
ssh
./openagua/templates/dist ubuntu@
${
array
[i]
}
:/home/ubuntu/OpenAgua/openagua/templates/dist
# 3. restart server
ssh ubuntu@
${
array
[i]
}
"source ~/Env/oa/bin/activate && sudo killall -9 gunicorn && cd ~/OpenAgua && gunicorn -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b :5000 openagua:app --daemon"
done
\ No newline at end of file
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