Skip to content

Commit 3cab433

Browse files
authored
Add files via upload
1 parent 1b84fa6 commit 3cab433

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

JENKINS/ECOMMDeploy.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
# Install Apache HTTP Server
4+
5+
sudo yum -y install httpd
6+
7+
# Start Apache HTTP Server
8+
9+
sudo systemctl start httpd
10+
11+
if [ "$(ls -A /var/www/html)" ]
12+
then
13+
cd /var/www/html
14+
sudo git pull
15+
else
16+
# Update App Code
17+
sudo git clone https://github.com/Sonal0409/ecomm.git /var/www/html
18+
fi

0 commit comments

Comments
 (0)