{"id":16144320,"url":"https://github.com/ryanj/openshift-meteorjs-quickstart","last_synced_at":"2025-04-23T02:53:23.389Z","repository":{"id":7232428,"uuid":"8541252","full_name":"ryanj/openshift-meteorjs-quickstart","owner":"ryanj","description":"Deploy meteor.js application bundles on OpenShift","archived":false,"fork":false,"pushed_at":"2016-04-12T00:07:12.000Z","size":55,"stargazers_count":3,"open_issues_count":0,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T02:53:17.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://openshift.redhat.com/community/blogs/cloudy-with-a-chance-of-meteor","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-03T19:34:15.000Z","updated_at":"2023-08-19T18:19:33.000Z","dependencies_parsed_at":"2022-09-05T03:51:46.298Z","dependency_job_id":null,"html_url":"https://github.com/ryanj/openshift-meteorjs-quickstart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Fopenshift-meteorjs-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Fopenshift-meteorjs-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Fopenshift-meteorjs-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Fopenshift-meteorjs-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanj","download_url":"https://codeload.github.com/ryanj/openshift-meteorjs-quickstart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250360259,"owners_count":21417718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T00:12:35.175Z","updated_at":"2025-04-23T02:53:23.369Z","avatar_url":"https://github.com/ryanj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Meteor.js on OpenShift\n\n## !!WARNING!!\n***This quickstart DOES NOT work with recent releases of MeteorJS.***\n\n***I'd recommend trying [sachinbhutani/meteor-openshift](https://github.com/sachinbhutani/meteor-openshift) instead.***\n\n####Meteor.js on OpenShift\n\nDeploy [meteor.js](http://meteor.com/) application bundles on [OpenShift](http://openshift.com/)\n\n\u003ca href='https://openshift.redhat.com/community/blogs/cloudy-with-a-chance-of-meteorjs'\u003e\u003cimg src='https://openshift.redhat.com/community/sites/default/files/meteorshift_1.png'/\u003e\u003c/a\u003e\n\nIf this is your first time using [OpenShift Online](http://openshift.com/) or [Meteor](http://meteor.com/), skip down to the \"[Basic Setup Notes](https://github.com/openshift-quickstart/openshift-meteorjs-quickstart#basic-setup-notes)\" below.\n\n## Configure your OpenShift gear\nSpin up a new OpenShift gear with [Node.js](http://nodejs.org), [MongoDB](http://www.mongodb.org/), and [a shim to help meteor.js connect to the correct ports](https://github.com/openshift-quickstart/openshift-meteorjs-quickstart).  This example uses the application name: \"**meteor**\"\n\n    rhc app create meteor nodejs-0.10 mongodb-2.2 --from-code=https://github.com/openshift-quickstart/openshift-meteorjs-quickstart.git\n\nThe above command will output a local copy of your OpenShift application source in a folder matching your application name.  Be sure to run this command from within a folder where you would like to keep your project source.\n\n## Create a Meteor.js example project\nTo see a list of all available meteor.js example projects, type `meteor create --list`.\n\nIn this guide, we'll use the meteor.js \"leaderboard\" example:\n\n    meteor create --example leaderboard\n\nSee [http://meteor.com/examples/](http://meteor.com/examples/) to learn about what other example applications are available.  Feel free to try them all.\n\n## Bundle and merge your meteor.js code\nBundle up your meteor.js source:\n\n    cd leaderboard # if you chose the leaderboard example\n    meteor bundle bundle.tar.gz # to prep for deployment\n\nNext, you'll need to extract the resulting code into your OpenShift application folder (minus the \"bundle/\" folder wrapper that Meteor will automatically include). Use the -k flag when extracting to prevent the existing DB connection code from being overwritten during this merge process.\n\nIf you are developing on Linux, or using GNU tar, this command should work:\n\n    tar -xvf bundle.tar.gz --transform 's|^bundle/||' -C ../meteor/\n\nFor Mac or BSD-based operating systems:\n\n    tar -xvf bundle.tar.gz -s '/^bundle//' -C ../meteor/\n\nThe above example assumes that you named your OpenShift application \"meteor\", as shown in the `rhc app create` step.  And, that your OpenShift application code is available at this relative path: `../meteor`\n\nAdd these new files to your OpenShift application's Git repo:\n\n    cd ../meteor\n    git add .\n    git commit -am \"Adding a meteor.js application bundle\"\n\n## Deploy to OpenShift\nThen, push the new code to OpenShift to deploy your meteor.js application bundle:\n\n    git push\n\nThat's it! Check out your new Meteor.js application at:\n\n    http://meteor-$yournamespace.rhcloud.com\n\n## Basic Setup Notes\nYou'll need an OpenShift Online account, and the `rhc` command-line tools in order to follow this guide.  You'll also need to have [Node.js](http://nodejs.org), [MongoDB](http://mongodb.org), and **Meteor** available in your application developement environment. \n\n### Installing meteor.js\n\n    curl https://install.meteor.com | sh\n\n### OpenShift Online Setup\nIn this quickstart guide, we'll be using OpenShift Online to host our application.\n\nSign up for an account at http://openshift.redhat.com/app/account/new\n\nIf you don't already have the `rhc` [(Red Hat Cloud) command-line tools](https://openshift.redhat.com/community/get-started#cli), install them:\n\n    sudo gem install rhc\n\nYou'll need to run `rhc setup` to link your OpenShift Online account with your local development environment, and to select an application namespace:\n\n    rhc setup\n\nIf you need any additional assistance setting up `rhc`, this doc may come in handy: https://openshift.redhat.com/community/developers/rhc-client-tools-install\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanj%2Fopenshift-meteorjs-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanj%2Fopenshift-meteorjs-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanj%2Fopenshift-meteorjs-quickstart/lists"}