-
Notifications
You must be signed in to change notification settings - Fork 1
Deployment Guide
maggie3000 edited this page Dec 16, 2021
·
32 revisions
This is the deployment guide for PikachuDrinkingWindex. Deploying on DEC 10TH. Back up person to deploy is Flora. Weekly deployment.
- Raspberry Pi (Raspberry Pi 400 Unit Keyboard) this is the hardware we will use
- VNC Viewer (on both Pi and on host)
- Monitor
- Keyboard & Mouse
- connect power source
- connect mouse through USB port
- connect to monitor to view through an HDMI cable
- power up the pi, login and get setup
- create account on personal computer
- download VNC Viewer on personal computer and on the Raspberry Pi
- in VNC Viewer application, select "computers" from the sidebar and then select the raspberry pi computer (Name: raspberrypi)
In terminal:
- install necessary packages
sudo apt install & sudo upgrade
sudo apt install default-jre default-jdk maven
- clone the repository
cd
for navigating files andcd~
to navigate to home directory
git clone https://github.com/florayuan18/pikachudrinkingwindex.git
- run the repository
cd pikachudrinkingwindex
sudo mvn spring-boot:run
- test site on Raspberry Pi browser (Chromium) using "localhost:8080"
Execute these lines in terminal:
cd /etc/systemd/system/
sudo touch AllHailTheHolyScrumMaster.service
sudo systemctl start AllHailTheHolyScrumMaster
sudo systemctl status AllHailTheHolyScrumMaster
cd /etc/nginx/sites-available
sudo touch AllHailTheHolyScrumMaster
sudo ln -s /etc/nginx/sites-available/AllHailTheHolyScrumMaster /etc/nginx/sites-enabled
sudo nginx -t
-
sudo systemctl restart nginx
- head to freenom.com
- make a Freenom account (Recommend personal google account)
- create a new domain
- choose between (recommend .cf)
- once domain is created head over to "services"
- click my domains
- click "Manage Domain"
- then click on "Manage Freenom DNS"
- head to "Register glue records"
- obtain your external IP address using "What is my IP Address"
- login to home router app/web
- setup your router to forward TCP/UDP to raspberry pi server
- start your raspberry pi server using the sudo command
- Use sudo command to thonny (run this or you may get some errors when running your website on multiple devices)
- check to make sure that you have port 80
- test your website on any browser
- navigate to directory
cd
to default andcd pikachudrinkingwindex
to navigate to project - update the repository
git pull
- update procedures
./mvnw package
sudo systemctl restart pikachudrinkingwindex.service
- https://csa.nighthawkcodingsociety.com/course/deploy
- https://docs.google.com/presentation/d/1-afmt3XGlzlVqjwS8Ign6y61j-st1VhoFk3uwW3o6Sk/edit?usp=sharing
- https://github.com/nighthawkcoders/nighthawk_csp
- https://github.com//nighthawkcoders/nighthawk_csa
- https://docs.google.com/document/d/1nODveWp0jBzj4ZpFLgWCWTOXzLAHAPUhAQYmZJ4LhyU/edit?usp=sharing
Welcome to the PikachuDrinkingWindex Wiki!