A heroku buildpack for Meteor v1+, designed to be as simple and readable as possible.
To use this with your meteor app and heroku:
Set up your app to deploy to heroku with git.
Set this repository as the buildpack URL:
heroku buildpacks:set https://github.com/AdmitHub/meteor-buildpack-horse.git
Add the MongoLab addon:
heroku addons:create mongolab
If it isn't set already, be sure to set the
ROOT_URL for meteor (replace URL with whatever is appropriate):
heroku config:set ROOT_URL=https://<yourapp>.herokuapp.com
Once that's done, you can deploy your app using this build pack any time by pushing to heroku:
git push heroku master
The basic buildpack should function correctly for any normal-ish meteor app,
with or without npm-container. For extra steps needed for your particular build,
just add shell scripts to the
extra folder and they will get sourced into the
Extras included in this branch:
MONGO_URLto the value of
phantomjs.sh: Include phantomjs for use with
This buildpack creates a directory
inside the app checkout, and puts all the binaries and the built app in there.
So it ends up having the usual unixy
subdirectories. Those directories are added to
$COMPILE_DIR/bin etc are great places to put any extra binaries or stuff
if you need to in custom extras.
If your app depends on packages which must have access to their own assets at
first run, this can break building. The current best known workaround is to
launch the meteor app before runing
meteor --build, so that the usual runtime compiling
makes these assets available. If your app needs this, set
in the Heroku Config Vars for your app. Reference issue.
Therea re a gazillian forks and branches of various buildpacks remixing the words "heroku", "buildpack", and "meteor", many of which are abandoned or outdated or broken, and it's really hard to keep them straight.
So this one is the horse one.
README image credit: wikicommons contributor Arsdelicata
Copy the snippet above into CLI.