Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually persisted backend ssl-data folder #106

Merged
merged 37 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
dbcb665
added description to the video url field in project creation form iss…
NdibeRaymond Jan 6, 2021
0543e70
new deployment changes (#62)
NdibeRaymond Jan 6, 2021
53626bb
increased pagination limit from 6 to 20 (#63)
NdibeRaymond Jan 7, 2021
8c252de
phase2 patial ----- 2 (#65)
NdibeRaymond Jan 7, 2021
2cc4ca5
Merge branch 'master' into phase2
NdibeRaymond Jan 7, 2021
8fcdce5
fixed bug that occurs when user submit google drive video link (#72)
NdibeRaymond Jan 10, 2021
b754415
separated docker-compose files into dev and prod in preparation for C…
NdibeRaymond Jan 17, 2021
31be594
Merge branch 'master' into phase2
NdibeRaymond Jan 17, 2021
4f0052b
separated docker-compose files into dev and prod in preparation for C…
NdibeRaymond Jan 18, 2021
2d8a73f
Code Refactor (#67)
NdibeRaymond Jan 20, 2021
75c30b6
Merge branch 'master' of https://github.com/unstructuredstudio/zubhub…
NdibeRaymond Jan 22, 2021
dbd07c9
Merge branch 'phase2' of https://github.com/unstructuredstudio/zubhub…
NdibeRaymond Jan 22, 2021
ee5c092
Customized form submission error (#80)
NdibeRaymond Jan 22, 2021
396a2ca
fixed issue #34: Increased upload image size, added image compression…
NdibeRaymond Jan 22, 2021
44ebc8c
Removed line behind dob field label on the signup page (#81)
NdibeRaymond Jan 22, 2021
7c717d3
fixed issue #52: Added help text to project creation desc field (#82)
NdibeRaymond Jan 22, 2021
ee19d3e
fixed issue #59: Added projects, followers and following links to pro…
NdibeRaymond Jan 22, 2021
b39d701
added functionality to show creators we are following (#83)
NdibeRaymond Jan 22, 2021
2b802e8
Merge branch 'master' of https://github.com/unstructuredstudio/zubhub…
NdibeRaymond Jan 24, 2021
5643b35
First Iteration of CI/CD workflow (#89)
NdibeRaymond Jan 25, 2021
965fd44
Second Iteration of CI/CD (#90)
NdibeRaymond Jan 25, 2021
193dadd
third iteration of CI/CD (#91)
NdibeRaymond Jan 25, 2021
fc199eb
Update build_deploy_backend.yml
NdibeRaymond Jan 25, 2021
68d997a
Fourth Iteration of CI/CD (#92)
NdibeRaymond Jan 25, 2021
35c2d4a
Added functionalities to update and delete projects (#88)
NdibeRaymond Jan 27, 2021
58d30e0
Merge branch 'phase2' of https://github.com/unstructuredstudio/zubhub…
NdibeRaymond Jan 27, 2021
f513f53
Internationalization (#74)
NdibeRaymond Jan 28, 2021
d089d3f
Added feature for editing and deleting of user profiles (#97)
NdibeRaymond Jan 28, 2021
80b9790
Merge branch 'master' into phase2
NdibeRaymond Jan 28, 2021
8728f81
Merge branch 'phase2' of https://github.com/unstructuredstudio/zubhub…
NdibeRaymond Jan 28, 2021
86dbe7b
prettified
NdibeRaymond Jan 28, 2021
f3a2335
phase2 ----- partial 5 ---- patch
NdibeRaymond Jan 28, 2021
8651198
Merge branch 'master' of https://github.com/unstructuredstudio/zubhub…
NdibeRaymond Jan 29, 2021
884275a
Reduce error page svg size (#99)
NdibeRaymond Feb 4, 2021
bc5f7f3
Merge branch 'phase2' of https://github.com/unstructuredstudio/zubhub…
NdibeRaymond Feb 5, 2021
8a2b6c7
CI/CD patch: fixed bug in ci/cd build causing env variable not to be …
NdibeRaymond Feb 8, 2021
ae9fc64
manually persisted backend .ssl-data folder
NdibeRaymond Feb 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions zubhub_backend/deploy_backend.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#! /bin/bash

echo "copying important files and folders from old project to new project"
mv /home/zubhub-backend/zubhub_backend/.env /home/zubhub-backend/zubhub/zubhub_backend/.env
cp /home/zubhub-backend/zubhub_backend/.env /home/zubhub-backend/zubhub/zubhub_backend/.env
cp -r /home/zubhub-backend/zubhub_backend/.ssl-data /home/zubhub-backend/zubhub/zubhub_backend/
cp -r /home/zubhub-backend/zubhub_backend/zubhub/creators/migrations/ /home/zubhub-backend/zubhub/zubhub_backend/zubhub/creators/migrations/
cp -r /home/zubhub-backend/zubhub_backend/zubhub/projects/migrations/ /home/zubhub-backend/zubhub/zubhub_backend/zubhub/projects/migrations/
echo "copying important files and folders from old project to new project"
Expand All @@ -14,12 +15,17 @@ echo "coping new project folder"
cp -r /home/zubhub-backend/zubhub/zubhub_backend/ /home/zubhub-backend/zubhub_backend/
echo "done coping new project folder"

echo "changing permission of cert storage folder"
sudo chown -R nobody:nogroup /home/zubhub-backend/zubhub_backend/.ssl-data/storage
echo "done changing permission of cert storage folder"

echo "removing uneccessary files and folders"
rm -rf /home/zubhub-backend/zubhub/ /home/zubhub-backend/zubhub_backend/.env.example
rm -rf /home/zubhub-backend/zubhub/ /home/zubhub-backend/zubhub_backend/.env.example /home/zubhub-backend/zubhub_backend/docker-compose.yml
echo "done removing uneccessary files and folders"

echo "rebuilding containers"
docker-compose -f /home/zubhub-backend/zubhub_backend/docker-compose.prod.yml down
docker-compose -f /home/zubhub-backend/zubhub_backend/docker-compose.prod.yml up -d --build
cd /home/zubhub-backend/zubhub_backend/
docker-compose -f docker-compose.prod.yml down
docker-compose -f docker-compose.prod.yml up -d --build
echo "Updated backend"
# EOT
5 changes: 3 additions & 2 deletions zubhub_frontend/zubhub/deploy_frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ echo "done removing uneccessary files and folders"


echo "stopping and rebuilding the containers"
docker-compose -f /home/zubhub-frontend/zubhub_frontend/zubhub/docker-compose.prod.yml down
docker-compose -f /home/zubhub-frontend/zubhub_frontend/zubhub/docker-compose.prod.yml up -d --build
cd /home/zubhub-frontend/zubhub_frontend/zubhub/
docker-compose -f docker-compose.prod.yml down
docker-compose -f docker-compose.prod.yml up -d --build
echo "Updated frontend"
# EOT
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const styles = theme => ({
},
},
disconnectedStyle: {
height:'20em',
[theme.breakpoints.down('500')]: {
height: '10em',
},
Expand Down