waitingkuo
waitingkuo

Reputation: 93754

How can I only build the server side by Meteor build?

After adding mobile platforms, meteor build will automatically build all the mobile platform and the backend server.

Is it possible to only build the backend server?

Upvotes: 3

Views: 1081

Answers (2)

Scott Stensland
Scott Stensland

Reputation: 28285

Yes just give it parm --server-only to skip mobile client code

as in

meteor --release x.x.x  build --server https://example.com --directory /my/bundle/foobar --server-only  # replace x.x.x with your meteor release

I know this works because I use this technique in the process I built to rebuild my entire webapp and this is working in production just fine.

Upvotes: 0

Tarang
Tarang

Reputation: 75945

Unfortunately the build feature doesn't do this.

There is a deprecated meteor bundle feature that still works though:

meteor bundle app.tar.gz

Builds a app.tar.gz bundle containing the server bundle.

Upvotes: 1

Related Questions