Giter Site home page Giter Site logo

meteor-openshift's Introduction

How to use

At first, create a openshift app with nodejs-0.10 and MongoDB 3.x custom cartridge.

rhc app create openshift-appname \
  nodejs-0.10 \
  https://raw.githubusercontent.com/icflorescu/openshift-cartridge-mongodb/master/metadata/manifest.yml

rhc will automatically clones your new app. At this point, You don't need anything of default content that is shipped by nodejs cartridge. Remove them all.

cd openshift-appname
git rm -rf * .openshift

Now, We have to fetch meteor bundler from this git.

git remote add meteor-openshift -m master [email protected]:jeeeyul/meteor-openshift.git
git pull -s recursive -X theirs meteor-openshift master

Now, time to build your meteor app.

cd path/to/your/meteorapp
meteor build path/to/your/openshift-appname --directory --server-only

It will generates a bundle directory into your openshift app repo.

Then, push your repo and see what happens.

cd path/to/your/openshift-appname
git add --all && git commit -m "First Launch" && git push

That's all.

How to update meteor app

Just replace bundle directory with new build, then push it.

Enable hot deploy

If you successfully deploy your app first time, Enabling hot deploy is recommanded.

cd path/to/your/openshift-appname
touch .openshift/markers/hot_deploy
git add --all && git commit -m "First Launch" && git push

meteor-openshift's People

Contributors

alexeypopov avatar jeeeyul avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.