-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a488b0
commit e4ad1aa
Showing
6 changed files
with
267 additions
and
202 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 0.0 | ||
os: linux | ||
files: | ||
- source: /index.html | ||
destination: /var/www/html/ | ||
hooks: | ||
BeforeInstall: | ||
- location: scripts/install_dependencies | ||
timeout: 300 | ||
runas: root | ||
- location: scripts/start_server | ||
timeout: 300 | ||
runas: root | ||
ApplicationStop: | ||
- location: scripts/stop_server | ||
timeout: 300 | ||
runas: root | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Sample Deployment</title> | ||
<style> | ||
body { | ||
color: #ffffff; | ||
background-color: #007f3f; | ||
font-family: Arial, sans-serif; | ||
font-size: 14px; | ||
} | ||
|
||
h1 { | ||
font-size: 500%; | ||
font-weight: normal; | ||
margin-bottom: 0; | ||
} | ||
|
||
h2 { | ||
font-size: 200%; | ||
font-weight: normal; | ||
margin-bottom: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div align="center"> | ||
<h1>Congratulations!</h1> | ||
<h2>You have successfully created a pipeline that retrieved this source application from an Amazon S3 bucket and deployed it | ||
to three Amazon EC2 instances using AWS CodeDeploy.</h2> | ||
<p>For next steps, read the AWS CodePipeline Documentation.</p> | ||
</div> | ||
</body> | ||
</html> | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
yum install -y httpd | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
service httpd start | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
isExistApp = `pgrep httpd` | ||
if [[ -n $isExistApp ]]; then | ||
service httpd stop | ||
fi | ||
|