Last active
May 3, 2023 14:22
-
-
Save chandradeoarya/b74b6c36e27ec0f23ff7eea6d950b330 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update -y | |
sudo apt install apache2 -y | |
sudo systemctl start apache2 | |
#Now open the IP address of the server | |
#Now stop the server to update the file | |
sudo systemctl stop apache2 | |
cd /var/www/html/ | |
sudo rm index.html | |
#Get your static files | |
sudo wget https://github.com/chandradeoarya/dojo-jump/raw/master/index.html | |
sudo wget https://github.com/chandradeoarya/dojo-jump/raw/master/main.js | |
sudo wget https://github.com/chandradeoarya/dojo-jump/raw/master/style.css | |
#Restart the apache server | |
sudo systemctl start apache2 | |
#Enabling the service to start up at boot | |
sudo systemctl enable apache2 | |
#Now open the IP address of the server and you will see the updated site being served |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment