Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lasbrdev/linux-projeto2-iac
Bash script for server upgrade and web application deployment.
https://github.com/lasbrdev/linux-projeto2-iac
deployment linux linux-server linux-server-configuration linux-shell
Last synced: about 1 month ago
JSON representation
Bash script for server upgrade and web application deployment.
- Host: GitHub
- URL: https://github.com/lasbrdev/linux-projeto2-iac
- Owner: lasbrDev
- Created: 2022-08-28T19:05:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T14:16:45.000Z (over 1 year ago)
- Last Synced: 2024-11-14T02:37:01.894Z (3 months ago)
- Topics: deployment, linux, linux-server, linux-server-configuration, linux-shell
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
./deploy.sh## Steps Performed by the Script
1. Update the operating system:
```bash
sudo apt update
sudo apt upgrade -y2. Install the Apache web server:
```bash
sudo apt install apache2 -y3. Install the `unzip` tool:
```bash
sudo apt install unzip -y3. Download and copy the application files:
```bash
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**.