Skip to content

Commit

Permalink
Great Scott
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Magalhães authored and Eric Magalhães committed Jan 14, 2016
1 parent 4f7b901 commit f24252c
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 0 deletions.
19 changes: 19 additions & 0 deletions appspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 1.0
os: linux
files:
- source: /index.html
destination: /var/www/html/
hooks:
ApplicationStop:
- location: scripts/stop_server.sh
timeout: 300
runas: root
BeforeInstall:
- location: scripts/install_apache.sh
timeout: 300
runas: root
ApplicationStart:
- location: scripts/start_server.sh
timeout: 300
runas: root

52 changes: 52 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>AWS Developer Fundamentals</title>

<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/simplex/bootstrap.min.css" rel="stylesheet">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style type="text/css">

.intro {
height: 100%;
padding-top: 150px;
text-align: center;
}

body {
width: 100%;
height: 100%;
}

html {
width: 100%;
height: 100%;
}

</style>
</head>
<body>
<div class="container">
<section class="intro">
<img src="http://static.comicvine.com/uploads/original/4/47738/1631280-doc_brown_full.jpg" class="img-circle img-thumbnail">
<h1>Great Scott!</h1>
<p>You have successfully deployed this page with CodeDeploy.</p>
<div class="row">
<p>This page is part of the AWS Developer Fundamentals Course at <a href="cloudacademy.com">Cloud Academy</a>. You can find the source files of this example <a href="https://github.com/cloudacademy/aws-developer-fundamentals">here</a>.</p>
</div>
</section>

</div>
</body>
</html>
3 changes: 3 additions & 0 deletions scripts/install_apache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
yum install -y httpd

3 changes: 3 additions & 0 deletions scripts/start_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
service httpd start

4 changes: 4 additions & 0 deletions scripts/stop_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
service httpd stop


0 comments on commit f24252c

Please sign in to comment.