Skip to content

Bash script for server upgrade and web application deployment.

Notifications You must be signed in to change notification settings

lasbrDev/linux-projeto2-iac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Update Server and Deploy a Web Application

This is a bash script that performs a system update and deploys a web application using the Apache server.

Prerequisites

Make sure you have a Linux system with root access or superuser permissions. Otherwise, you can run the commands by preceding them with sudo.

How to Use

  1. Clone the repository or create a new deploy.sh file on your server.

  2. Open the terminal and execute the script with the following command:

    ./deploy.sh
    

Steps Performed by the Script

  1. Update the operating system:

    sudo apt update
    sudo apt upgrade -y
    
  2. Install the Apache web server:

    sudo apt install apache2 -y
    
  3. Install the unzip tool:

    sudo apt install unzip -y
    
  4. Download and copy the application files:

    cd /tmp
    wget https://github.com/denilsonbonatti/linux-site-dio/archive/refs/heads/main.zip
    unzip main.zip
    cd linux-site-dio-main
    cp -R * /var/www/html/
    

Now, your server should be updated, and the web application will be available in /var/www/html/.

License

This project is licensed under the MIT License.

About

Bash script for server upgrade and web application deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages