Code Monkey home page Code Monkey logo

heroku-buildpack-meteor's Introduction

Heroku buildpack for Meteor

Supported version

This buildpack is dedicated for use with Meteor 1.0+.

Usage

You can watch video showing how to use buildpack.

First you have to create Meteor application

$ meteor create helloworld
helloworld: created.

To run your new app:
   cd helloworld
   meteor

Initialize git repository in application's directory.

$ cd helloworld
$ git init
Initialized empty Git repository in /tmp/a/helloworld/.git/
$ git add .
$ git commit -m "First commit"

Create Heroku application

$ heroku create <unique_app_name> --stack cedar --buildpack https://github.com/jagi/heroku-buildpack-meteor.git

Set ROOT_URL variable

$ heroku config:set ROOT_URL=http://<unique_app_name>.herokuapp.com

Add MongoHQ

$ heroku addons:add mongohq

Deploy application to Heroku server

$ git push heroku master

Enjoy!

Additional notes

  1. The .meteor directory doesn't have to be located in the root directory of the Git repository. This buildpack tries to find .meteor directory and use the first found location to build application. For instance, you can use following directories structure:
/.git/
/.gitignore
/web/.meteor
/web/app.css
/web/app.html
/web/app.js
/android/
/ios/
  1. If you want to deploy (git push) non master local branch to Heroku server use the following command:
$ git push heroku <local_branch_name>:master

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.