haynzz
haynzz

Reputation: 130

Deploying clean meteor 0.9 to heroku

I am creating a very small and clean meteor app and have recently updated to v0.9 of meteor to be able to get rid of meteorite as "package manager".

For me it is really important in a way not to have any deployment specific stuff wired up into the sourcecode if it is possible.

What I am trying to do in a way is to have a good and clean Continuous Integration running. Right now I am using Codeship to run the tests and then push to heroku. But since I updated top meteor v0.9 there not seems to be a working buildpack.

Is it a reasonable way to create a buildpack on my own? That one would not have to do more than just install node, npm and meteor. Or is there another way to have the app bundled on a "build server" (can codeship do that?) and then have it somehow pushed to heroku as normal node.js app with all the necessities and dependencies?

Concerning the buildpack way:

I have been trying to install meteor via

curl https://install.meteor.com | /bin/sh

But when I run

meteor deploy --directory deploy

I get

bundle: You're not in a Meteor project directory.

Upvotes: 1

Views: 967

Answers (2)

user85461
user85461

Reputation: 6640

This buildpack (which I authored) works for meteor >0.9 using meteor's native packager; no meteorite:

https://github.com/AdmitHub/meteor-buildpack-horse

Upvotes: 3

Tarang
Tarang

Reputation: 75945

You could start off with the existing buildpack (or one of the many forks of it).

It should be relatively easy without meteorite since you would no longer have to worry about it, its just getting rid of meteorite and updating the version of node. https://github.com/oortcloud/heroku-buildpack-meteorite

Regarding deploying to heroku. meteor deploy is meant to deploy to *.meteor.com or via Meteor's upcoming commercial product. Deploying to heroku is also relatively easy.

Deploying to heroku is setting up the buildpack, adding the git remote and git pushing to it. Also easy, perhaps easier, than meteor deploy.

During the git push process heroku will take your meteor app, bundle it, download node and run it (as in the buildpack). It's quite easy that way. One nice thing without meteorite is I imagine the build process is much faster.

Upvotes: 1

Related Questions