These steps assume that you already have a working app on OpenShift. If you need help, you can get started here!
rhc app show YOUR_APP_NAME
ssh YOUR_APP_SSH_URL
These steps assume that you already have a working app on OpenShift. If you need help, you can get started here!
rhc app show YOUR_APP_NAME
ssh YOUR_APP_SSH_URL
| #Add the following lines to your `~/.bashrc` to run "rhclone $app_name $cart_type $git_uri" | |
| # in order to quickly initialize an openshift gear | |
| # with an openshift-compatible cart (via a git repo uri). | |
| # | |
| # 'git' and 'rhc' command-line tools are required: | |
| function rhclone() | |
| { | |
| rhc app create $1 $2 && cd $1 && git remote add upstream -m master $3 && git pull -s recursive -X theirs upstream master && git push | |
| } | |
| export rhclone |
| <div id='searchbox'> | |
| <form action="http://google.com/" method="GET" onsubmit="document.getElementById('searchbox_input').value += ' site:<?= getenv('OPENSHIFT_APP_DNS'); ?>'; return true;"> | |
| <input type="text" id="searchbox_input" name="q"/><input type="submit" value="Search"/> | |
| </form> | |
| </div> | |
| <div id='searchbox'> | |
| <form action="http://google.com/" method="GET" onsubmit="document.getElementById('searchbox_input').value += ' site:YOUR_SITE_NAME'; return true;"> | |
| <input type="text" id="searchbox_input" name="q"/><input type="submit" value="Search"> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
| <title>Easy earthquakes</title> | |
| <script src="http://d3js.org/d3.v3.min.js"></script> | |
| <script src="http://libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script> | |
| <style type="text/css"> | |
| body{ |
Want to deploy an existing node.js Github project on OpenShift?
Give this recipe a try:
cd $YOUR_PROJECT_FOLDER # This script assumes that your project is a git repo, with a git remote hosted on github.com
git remote add upstream -m master [email protected]:ryanj/nodejs-custom-version-openshift.git
git pull -s recursive upstream master # merge in a basic OpenShift skeleton
In response to Steve's call for a shift toward civic-focused applications that are a better suited for adoption and maintenance by PHP-friendly IT departments, I've momentarily set aside OpenShift's shiny new nodejs-0.10 cartridge in order to show you how easy it is to write a basic single-page mapping application in PHP.
Those of you who are familiar with Steve's mapping quickstarts may recognize this application as a port of his own MongoDB-Python-Flask example which uses MongoDB's spatial features to perform a classic bounding-box query.
*Project source: [https://github.com/openshift-quickstart/silex-mongodb-pa
#Open Source Ribbons for OpenShift
Copy the following code into the bottom of your page:
<span id="fossribbon"><a href="https://openshift.redhat.com/app/console/application_types/custom?name=parks&initial_git_url=https%3A%2F%2Fgithub.com/ryanj/restify-postGIS.git&cartridges[]=nodejs-0.10&cartridges[]=postgresql-9.2" >Run me on OpenShift</a></span>
Update your git repo url and cartridge dependencies
Include the attached CSS stylesheet
| # in your .bash_profile / .bashrc | |
| alias pushit='git push && cvlc http://www.youtube.com/watch?v=vCadcBR95oU' | |
| # to get the file into your .bash_profile | |
| echo "alias pushit='git push && cvlc http://www.youtube.com/watch?v=vCadcBR95oU'" >> ~/.bash_profile |
| #!/bin/bash | |
| # Projects which rely on npm modules which are normally installed using "npm install -g" | |
| # can make those dependencies available on OpenShift by including this file in their project source. | |
| # Add this content to your project as ".openshift/action_hooks/pre_build_nodejs" | |
| # Then, save your npm dependencies locally (without the '-g' flag): | |
| # > npm install module_name --save | |
| # Finally, add and commit your changes: |
| <section> | |
| <section> | |
| <img style="disply:block;border:none;background:none;" alt='OpenShift-logo' src='../shared/img/OpenShift_Horizontal_RGB_Reverse.png'/> | |
| <h1>Cartridge Authoring</h1> | |
| <h1>WorkShop</h1 | |
| <br/> | |
| <p><a href='http://bit.ly/1jAgPYh'>bit.ly/1jAgPYh</a></p> | |
| </section> | |
| <section id='presented-by'> | |
| <div>presented by</div> |