Update config.ru

This commit is contained in:
DanielWidmer 2017-11-12 17:58:50 +01:00 committed by GitHub
parent c457001ca5
commit 908df30db4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,66 +242,6 @@ pre {
<h1>Welcome to your Ruby application on OpenShift</h1> <h1>Welcome to your Ruby application on OpenShift</h1>
</hgroup> </hgroup>
<div class="row">
<section class='col-xs-12 col-sm-6 col-md-6'>
<section>
<h2>Deploying code changes</h2>
<p>
The source code for this application is available to be forked from the <a href="https://www.github.com/openshift/ruby-ex">OpenShift GitHub repository</a>.
You can configure a webhook in your repository to make OpenShift automatically start a build whenever you push your code:
</p>
<ol>
<li>From the Web Console homepage, navigate to your project</li>
<li>Click on Browse &gt; Builds</li>
<li>From the view for your Build click on the button to copy your GitHub webhook</li>
<li>Navigate to your repository on GitHub and click on repository settings &gt; webhooks</li>
<li>Paste your webhook URL provided by OpenShift &mdash; that's it!</li>
</ol>
<p>After you save your webhook, if you refresh your settings page you can see the status of the ping that Github sent to OpenShift to verify it can reach the server.</p>
<p>Note: adding a webhook requires your OpenShift server to be reachable from GitHub.</p>
<h3>Working in your local Git repository</h3>
<p>If you forked the application from the OpenShift GitHub example, you'll need to manually clone the repository to your local system. Copy the application's source code Git URL and then run:</p>
<pre>$ git clone &lt;git_url&gt; &lt;directory_to_create&gt;
# Within your project directory
# Commit your changes and push to OpenShift
$ git commit -a -m 'Some commit message'
$ git push</pre>
<p>After pushing changes, you'll need to manually trigger a build if you did not setup a webhook as described above.</p>
</section>
</section>
<section class="col-xs-12 col-sm-6 col-md-6">
<h2>Managing your application</h2>
<p>Documentation on how to manage your application from the Web Console or Command Line is available at the <a href="http://docs.openshift.org/latest/dev_guide/overview.html">Developer Guide</a>.</p>
<h3>Web Console</h3>
<p>You can use the Web Console to view the state of your application components and launch new builds.</p>
<h3>Command Line</h3>
<p>With the <a href="http://docs.openshift.org/latest/cli_reference/overview.html">OpenShift command line interface</a> (CLI), you can create applications and manage projects from a terminal.</p>
<h2>Development Resources</h2>
<ul>
<li><a href="http://docs.openshift.org/latest/welcome/index.html">OpenShift Documentation</a></li>
<li><a href="https://github.com/openshift/origin">Openshift Origin GitHub</a></li>
<li><a href="https://github.com/openshift/source-to-image">Source To Image GitHub</a></li>
<li><a href="http://docs.openshift.org/latest/using_images/s2i_images/ruby.html">Getting Started with Ruby on OpenShift</a></li>
<li><a href="http://stackoverflow.com/questions/tagged/openshift">Stack Overflow questions for OpenShift</a></li>
<li><a href="http://git-scm.com/documentation">Git documentation</a></li>
</ul>
</section>
</div>
<footer> <footer>
<div class="logo"><a href="https://www.openshift.com/"></a></div> <div class="logo"><a href="https://www.openshift.com/"></a></div>
</footer> </footer>