Skip to content

Deployment

Aryanboxout edited this page Dec 16, 2021 · 19 revisions

Deployment

Deployment option(notes from meeting)

Option 1 *AWS- Amazon Web services provide the opportunity to have a cloud server(ec2) which enables us to deploy website through it

*AWS is free for a year with credit card swipe

*Option 2 *Raspberry pi canakit (More for electrical things )

*Around 130 dollars and allows us to deploy website on the raspberry pi

*CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM

*Better quality option: *CanaKit Raspberry Pi 4 8GB Extreme Kit - 128GB Edition (8GB RAM)

Instance deployed successfully on AWS

Purpose

  • deployment connects our website to the internet by placing it on web servers
  • other people can view your website on different devices
  • the website will always be running, not just when it is running on your laptop

Getting Started

  • we will be using AWS (Amazon Web Services) to deploy our website
  • we need to research how to deploy on AWS

Deployment Details

  • deployment should be updated weekly in order to ensure site functionality is remaining and in standard as what was intended with at of deployment
  • we only plan to deploy the codfish repo and not any other branches or forks

Final plan(steps)

  1. Purchase aws free subscription with credit card info and launch its ec2w instance for deployment
  2. Choose a free tier instance
  3. Configure instance detail stick launch single instance of the AMI using the default
  4. Launch the instance with 8GB of storage once the storage stick is added with the default
  5. add tags for volume to simplify future identification
  6. Configure security group(firewall rules that control the traffic for your instance)- Set specific rules in order to allow traffic to your destination safely.
  7. Finally review the instance launch

Weekly Deployment plan

  • All team members should have weeks of work committed by 8 pm pacific standard time on Thursday so deployment officers can deploy before Friday morning.
  • All team members will have access to and understanding of deployment in case of an emergency

Order of Deployment

  • Arushi + Vidhi: 6pm
  • Prisha + Saumya: 7pm
  • Aryan: 8pm

Backup Plan

  • Arushi will deploy if Aryan is absent
  • Vidhi, Saumya, and Prisha will deploy if both are absent

Details on pulling from git and updating deployment for any group member

  1. Log into AWS with email: emailaryantoday@gmail.com 2)Password is Aryan12Arush
  2. Now open instance and click instance id
  3. Select connect and it will open the console
  4. In console Run these commands step by step-

cd ~/codefish git pull

pip install -r requirements.txt

source homesite/bin/activate

sudo systemctl start homesite.service

]

  1. Now open the website on a domain and ensure it is updated

Clone this wiki locally