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
Showing
1 changed file
with
337 additions
and
3 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 |
---|---|---|
@@ -1,3 +1,337 @@ | ||
Instructions Here... | ||
<br><br> | ||
<a href="people/">app in action</a> | ||
<!doctype html> | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>template-app-name</title> | ||
|
||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet"> | ||
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet"> | ||
|
||
<!-- | ||
IMPORTANT: | ||
This is Heroku specific styling. Remove to customize. | ||
--> | ||
<link href="http://heroku.github.com/template-app-bootstrap/heroku.css" rel="stylesheet"> | ||
<style type="text/css"> | ||
.instructions { display: none; } | ||
.instructions li { margin-bottom: 10px; } | ||
.instructions h2 { margin: 18px 0;} | ||
.instructions blockquote { margin-top: 10px; } | ||
.screenshot { | ||
margin-top: 10px; | ||
display:block; | ||
} | ||
.screenshot a { | ||
padding: 0px; | ||
line-height: 1; | ||
display: inline-block; | ||
text-decoration: none; | ||
} | ||
.screenshot img, .tool-choice img { | ||
border: 1px solid #ddd; | ||
-webkit-border-radius: 4px; | ||
-moz-border-radius: 4px; | ||
border-radius: 4px; | ||
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075); | ||
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075); | ||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075); | ||
} | ||
.tool-choice { | ||
border-bottom: 1px solid #ddd; | ||
padding-bottom: 17px; | ||
margin: 18px 0; | ||
} | ||
.tool-choice .span3 { | ||
text-align: center; | ||
} | ||
.tool-choice .btn { | ||
width: 197px; | ||
} | ||
.tool-choice a img { | ||
cursor: pointer; | ||
} | ||
</style> | ||
<!-- /// --> | ||
</head> | ||
|
||
<body> | ||
<div class="navbar navbar-fixed-top"> | ||
<div class="navbar-inner"> | ||
<div class="container"> | ||
<a href="/" class="brand">Spring MVC and Hibernate Template</a> | ||
<!-- | ||
IMPORTANT: | ||
This is Heroku specific markup. Remove to customize. | ||
--> | ||
<a href="/" class="brand" id="heroku">by <strong>heroku</strong></a> | ||
<!-- /// --> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container" id="getting-started"> | ||
<div class="row"> | ||
<div class="span8 offset2"> | ||
<h1 class="alert alert-success">Your app is ready!</h1> | ||
|
||
<div class="page-header"> | ||
<h1>Get started with your Spring MVC and Hibernate Application</h1> | ||
</div> | ||
|
||
<ul id="tab" class="nav nav-tabs"> | ||
<li class="active"><a href="#eclipse-instructions" data-toggle="tab">Use Eclipse</a></li> | ||
<li><a href="#cli-instructions" data-toggle="tab">Use Command Line</a></li> | ||
</ul> | ||
|
||
<div class="tab-content"> | ||
|
||
|
||
<div id="eclipse-instructions" class="instructions tab-pane active"> | ||
<a name="using-eclipse"></a> | ||
<h1>Using Eclipse:</h1> | ||
|
||
<h2>Step 1. Setup your environment</h2> | ||
<ol> | ||
<li>Ensure <a href="http://unicase.blogspot.com/2011/01/egit-tutorial-for-beginners.html">EGit</a> is installed.</li> | ||
<li>Ensure the <a href="http://www.eclipse.org/m2e/">Maven Eclipse Plugin</a> is installed.</li> | ||
<li>Create an SSH key: | ||
<ol> | ||
<li>Go to <code>Window</code> <i class="icon-chevron-right"></i> <code>Preferences</code> <i class="icon-chevron-right"></i> <code>General</code> <i class="icon-chevron-right"></i> <code>Network Connections</code> <i class="icon-chevron-right"></i> <code>SSH2</code></li> | ||
<li>Choose the <code>Key Management</code> tab</li> | ||
<li>Click <code>Generate RSA Key...</code> | ||
<div class="modal hide" id="addingSshKey"> | ||
<div class="modal-header"> | ||
<a class="close" data-dismiss="modal">×</a> | ||
<h3>Generate RSA Key</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/2-3-adding-ssh-key.png" alt="SSH Eclipse Preferences Window" /> | ||
</div> | ||
</div> | ||
<span class="screenshot"> | ||
<a href="#addingSshKey" data-toggle="modal"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/2-3-adding-ssh-key.png" alt="SSH Eclipse Preferences Window" width="100" /> | ||
<i class="icon-zoom-in"></i> | ||
</a> | ||
</span> | ||
</li> | ||
<li>Copy the generated public key in the text box and <a href="https://api.heroku.com/account/ssh" class="btn btn-primary btn-mini">add it to your account</a></li> | ||
<li>Click <code>Save Private Key...</code>, accepting the defaults</li> | ||
<li>Click <code>Ok</code></li> | ||
</ol> | ||
</li> | ||
</ol> | ||
|
||
<h2>Step 2. Clone the App</h2> | ||
<ol> | ||
<li>Go to <code>File</code> <i class="icon-chevron-right"></i> <code>Import...</code> <i class="icon-chevron-right"></i> <code>Git</code> <i class="icon-chevron-right"></i> <code>Projects from Git</code> | ||
<div class="modal hide" id="importFromGit"> | ||
<div class="modal-header"> | ||
<a class="close" data-dismiss="modal">×</a> | ||
<h3>Import</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/2-1-import.png" alt="Import" /> | ||
</div> | ||
</div> | ||
<span class="screenshot"> | ||
<a href="#importFromGit" data-toggle="modal"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/2-1-import.png" alt="Import" width="100" /> | ||
<i class="icon-zoom-in"></i> | ||
</a> | ||
</span> | ||
</li> | ||
<li>Choose <code>URI</code> and click <code>Next</code></li> | ||
<li>Enter <code>git@heroku.com:<script>document.write(appname());</script>.git</code> in the <code>URI</code> field. | ||
<div class="modal hide" id="cloneGitRepository"> | ||
<div class="modal-header"> | ||
<a class="close" data-dismiss="modal">×</a> | ||
<h3>Clone Git Repository</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/3-4-clone-git-repo.png" alt="Clone Git Repository" /> | ||
</div> | ||
</div> | ||
<span class="screenshot"> | ||
<a href="#cloneGitRepository" data-toggle="modal"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/3-4-clone-git-repo.png" alt="Clone Git Repository" width="100" /> | ||
<i class="icon-zoom-in"></i> | ||
</a> | ||
</span> | ||
</li> | ||
<li>Click <code>Next</code> three times | ||
<blockquote> | ||
Click <code>Yes</code> to the question of authenticity if the question appears. | ||
</blockquote> | ||
</li> | ||
<li>Choose <code>Import as general project</code> | ||
<div class="modal hide" id="importProjectsFromGit"> | ||
<div class="modal-header"> | ||
<a class="close" data-dismiss="modal">×</a> | ||
<h3>Import Projects from Git</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/2-6-import-general.png" alt="Import Projects from Git" /> | ||
</div> | ||
</div> | ||
<span class="screenshot"> | ||
<a href="#importProjectsFromGit" data-toggle="modal"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/2-6-import-general.png" alt="Import Projects from Git" width="100" /> | ||
<i class="icon-zoom-in"></i> | ||
</a> | ||
</span> | ||
</li> | ||
<li>Click <code>Finish</code></li> | ||
</ol> | ||
|
||
<h2>Step 3. Configure the App</h2> | ||
<ol> | ||
<li>Right-click the project root</li> | ||
<li>Choose <code>Configure</code> <i class="icon-chevron-right"></i> <code>Convert to Maven Project</code> </li> | ||
</ol> | ||
|
||
<h2>Step 4. Makes some changes to the app</h2> | ||
<ol> | ||
<li>Open <code>HelloServlet.java</code></li> | ||
<li>Modify line 20 with: | ||
<code> | ||
out.write("Deployed first change!".getBytes()); | ||
</code> | ||
</li> | ||
</ol> | ||
|
||
<h2>Step 5. Deploy to Heroku</h2> | ||
<ol> | ||
<li>Right-click the project root and choose <code>Team</code> <i class="icon-chevron-right"></i> <code>Commit</code></li> | ||
<li>Enter a commit message and click <code>Commit</code> | ||
<div class="modal hide" id="commitChanges"> | ||
<div class="modal-header"> | ||
<a class="close" data-dismiss="modal">×</a> | ||
<h3>Commit Changes</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/6-5-commit.png" alt="Commit Changes" /> | ||
</div> | ||
</div> | ||
<span class="screenshot"> | ||
<a href="#commitChanges" data-toggle="modal"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/6-5-commit.png" alt="Commit Changes" width="100" /> | ||
<i class="icon-zoom-in"></i> | ||
</a> | ||
</span> | ||
</li> | ||
<li>Right-click the project root and choose <code>Team</code> <i class="icon-chevron-right"></i> <code>Push to Upstream</code></li> | ||
<li>Review the push results. At the bottom, a "... deployed to Heroku" message will appear. | ||
<div class="modal hide" id="pushResults"> | ||
<div class="modal-header"> | ||
<a class="close" data-dismiss="modal">×</a> | ||
<h3>Push Results</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/6-8-push-result.png" alt="Push Results" /> | ||
</div> | ||
</div> | ||
<span class="screenshot"> | ||
<a href="#pushResults" data-toggle="modal"> | ||
<img src="https://s3.amazonaws.com/template-app-instructions-screenshots/eclipse/6-8-push-result.png" alt="Push Results" width="100" /> | ||
<i class="icon-zoom-in"></i> | ||
</a> | ||
</span> | ||
</li> | ||
</ol> | ||
|
||
<div class="hero-unit"> | ||
<h1>Done!</h1> | ||
<p>You've just cloned, modified, and deployed a brand new app.</p> | ||
<a href="/people/" class="btn btn-primary btn-large">See your changes</a> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<div id="cli-instructions" class="instructions tab-pane"> | ||
<a name="using-cli"></a> | ||
<h1>Using Command Line:</h1> | ||
|
||
<h2>Step 1. Setup your environment</h2> | ||
<ol> | ||
<li>Install the <a href="http://toolbelt.heroku.com">Heroku Toolbelt</a>.</li> | ||
<li>Install <a href="http://maven.apache.org/download.html">Maven</a>.</li> | ||
</ol> | ||
|
||
<h2>Step 2. Login to Heroku</h2> | ||
<code>heroku login</code> | ||
<blockquote> | ||
Be sure to create, or associate an SSH key with your account. | ||
</blockquote> | ||
<pre> | ||
$ heroku login | ||
Enter your Heroku credentials. | ||
Email: naaman@heroku.com | ||
Password: | ||
Could not find an existing public key. | ||
Would you like to generate one? [Yn] Y | ||
Generating new SSH public key. | ||
Uploading SSH public key /Users/Administrator/.ssh/id_rsa.pub | ||
Authentication successful.</pre> | ||
|
||
<h2>Step 3. Clone the App</h2> | ||
<code>git clone -o heroku git@heroku.com:<script>document.write(appname())</script>.git</code> | ||
|
||
<h2>Step 4. Makes some changes to the app</h2> | ||
<ol> | ||
<li><script>document.write("<code>cd " + appname() + "</code>")</script></li> | ||
<li>Open <code>src/main/java/HelloServlet.java</code> with your favorite editor</li> | ||
<li>Modify line 20 with: | ||
<code> | ||
out.write("Deployed first change!".getBytes()); | ||
</code> | ||
</li> | ||
</ol> | ||
|
||
<h2>Step 5. Make sure the app still compiles</h2> | ||
<code>mvn clean package</code> | ||
|
||
<h2>Step 6. Deploy your changes</h2> | ||
<ol> | ||
<li><code>git commit -am "New changes to deploy"</code></li> | ||
<li><code>git push heroku master</code></li> | ||
</ol> | ||
|
||
<div class="hero-unit"> | ||
<h1>Done!</h1> | ||
<p>You've just cloned, modified, and deployed a brand new app.</p> | ||
<a href="/people/" class="btn btn-primary btn-large">See your changes</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- end tab content --> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
<script src="http://twitter.github.com/bootstrap/assets/js/jquery.js"></script> | ||
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-modal.js"></script> | ||
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tab.js"></script> | ||
<script type="text/javascript"> | ||
<!-- | ||
function appname() { | ||
return location.hostname.substring(0,location.hostname.indexOf(".")); | ||
} | ||
// --> | ||
</script> | ||
</body> | ||
</html> |