Skip to content

Instantly share code, notes, and snippets.

@chandradeoarya
Last active May 3, 2023 14:22
Show Gist options
  • Save chandradeoarya/b74b6c36e27ec0f23ff7eea6d950b330 to your computer and use it in GitHub Desktop.
Save chandradeoarya/b74b6c36e27ec0f23ff7eea6d950b330 to your computer and use it in GitHub Desktop.
#!/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