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

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?

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.

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.

Related

How to fix Xamarin Forms pipeline Target Framework error

Locally, I can build and run my Xamarin Forms application with no issues. In my Azure build pipelines I have my master branch failing because of my target framework version. It says it is 9.0 when it should be at least 10.0.
In my Android project file I have the framework version set to 10.0. I have made sure it is also v10 in the properties tab for the project. Yet I still get the below error.
##[error]C:\Users\VssAdministrator\.nuget\packages\xamarin.forms\5.0.0.2012\build\Xamarin.Forms.targets(188,5): Error XF005: The $(TargetFrameworkVersion) for MyApp.Android (v9.0) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms (10.0). You need to increase the $(TargetFrameworkVersion) for MyApp.Android.
Try to open your .csproj file,and manually modify its targetFrameworkVersion.
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
Verify that BOTH of the following project properties are set to 10.0:
Application / Compile using Android version (Target Framework).
Android Manifest / Target Android version.
https://learn.microsoft.com/en-us/xamarin/android/app-fundamentals/android-api-levels
If those are already both 10.0, then make sure the Azure build pipeline has up-to-date versions of Android SDKs and tools.
Another way to fix:
If you are able to create a new sample solution, and successfully build that via Azure, then start a new solution, and add all your files to it.

Ubuntu dnu restore scripts

I've got a problem with 'dnu restore' command in Ubuntu 15 trying to build an ASP.NET 5 application. If I add SignalR to dependencies in project.json, no JS scripts are added to my project directory. Visual Studio Code continues asking me to restore packages. The same situation with jQuery (yes, I know it's better to use Bower for it's installation). I've tried running command with '--no-cache' parameter and adding SignalR-Client dependency, but scripts are still not added. It seems like Server-side libs are installed successfully (project builds and runs when I inherit from SignalR Hub class, the only problem VS Code does not recognize installed namespaces and classes). Is it possible to fix it or should I manually download JS files?
I've found the reason. ASP.NET 5 packaging system is new for me so I didn't know how to use it properly. DNX doesn't know how to install client libraries at all. It places all the installed packages into a special directory shared by all projects. In order to install client packages Bower should be used (it is easy to add - just add a dependency in project.json and create a configuration file). By the way SignalR has it's own Bower package as well as jQuery (but this is obvious).

Meteor.js - how do I include a debugOnly package when I deploy to production?

I would like to deploy a meteor app and I would like all packages bundled and deployed, including those marked as debugOnly -- how can I accomplish this? I am using Arunoda's mup and mupx tools for some deploys and pushing to Heroku for others.
Thanks.
When you run meteor deploy --debug, it will deploy your application the same way as it is in development mode. I'd bet running meteor build --debug would yield the same results.
Of course, this may not be a good idea with with debugOnly packages :)

How do I run a meteor.js app using 0.8.0-rc1?

I am trying to run my meteor.js app using the latest 0.8.0-rc1 build. How do I update my app to run with 0.8.0-rc1
The current release is 0.8.0-rc3 (2014-03-26). You can update your app by running meteor update --release 0.8.0-rc3 in the app root directory.
Additionally, here are two great resources for running a Meteor.js app on blaze (0.8.0)
http://meteorpedia.com/read/Blaze_Notes
https://github.com/meteor/meteor/wiki/Using-Blaze

How to get version of meteor on meteor.com

If I deploy my app using:
meteor deploy myapp.meteor.com
How can I check the version of meteor running on the remote server?
Simply evaluate Meteor.release in your app code.
Meteor.release is a string containing the name of the release with which the project was built (for example, "0.7.1.1"). It is undefined if the project was built using a git checkout of Meteor.
Also note that every project is pinned to a specific release of Meteor. Demo at http://release.meteor.com/ - note the release is Windows, which is clearly not what meteor.com runs :)

Resources