curl https://install.meteor.com/ | sh meteor add-platform $PLATFORM meteor build $PLATFORM --server $SERVER
While buddybuild natively supports Cordova, additional steps are required to integrate Meteor into your build.
To start with, ensure you have checked in the
.meteor folder in your
project, excluding the
local folder as buddybuild doesn’t need it.
Without it, buddybuild won’t be able to build your project.
First, we need to tell buddybuild how to build your meteor project. We
can do this by having a
buddybuild_postclone.sh file in the root of your
repository. You can find more information about our custom build steps
Once you have that file in your repository, follow the steps to
sign up with
buddybuild. Your first build will fail, because buddybuild doesn’t yet
know about the
$SERVER environment variables we are
using in the
$PLATFORM variable should be
should represent your development server in the format
Once you’ve added those 2 variables, retry the build.
Buddybuild detects many apps and frameworks within your project; make sure to select the correct one.
You should select the workspace project, the one not within a
Errors and common build failures
When trying to build an app, you might find that the build fails with an
error that looks like
error: ios: platform is already added.
This is an indication that Meteor believes that your iOS project has
already been added, however in all likelihood, you have your
folder set to be ignored in Git.
The solution is to run
meteor remove-platform ios, in one of two
You can run the command from your
You can run the command locally, remove the
iosfolder from your
.gitignore, and then commit the changes.
Either variation allows buddybuild to start with a consistent state for every build.