Code Monkey home page Code Monkey logo

autod's Introduction

AutoD - Static Website Deployment Automation Tool

This bash script automates the process of static website deployment by a GitHub repository zip file, extracting its contents, and deploying them to an Apache server. It's designed to streamline the deployment of static websites hosted on GitHub.

Usage

./deploy.sh [-h] [-r REPO_URL] [-n ZIP_NAME] [-f EXTRACTED_FOLDER]

Options:

  • -h: Display usage information.
  • -r REPO_URL: Specify the GitHub repository zip file URL.
  • -n ZIP_NAME: Specify the name of the zip file.
  • -f EXTRACTED_FOLDER: Specify the name of the extracted folder.

Installation

Before running the script, ensure that the following dependencies are installed:

  • Apache2
  • unzip

Run the following commands to install the dependencies:

sudo apt-get update
sudo apt-get install apache2 -y
sudo apt install unzip

Example Usage

./deploy.sh -r <repo_zip_url> -n <zip_name.zip> -f <extracted_folder>

Replace <repo_zip_url>, <zip_name.zip>, and <extracted_folder> with appropriate values.

Deployment

  1. Download and Extract: The script downloads the specified GitHub repository zip file and extracts its contents.

  2. Deploy to Apache Server: It copies the extracted content to the Apache server's HTML directory (/var/www/html).

Note

  • This script assumes that Apache2 is configured and running on the system.

LICENSE

The source code is licensed apache2

Copyright (c) 2023 Venkata Siddardha Rali

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.