Building And deploying app to MobileFirst using ANT script - ibm-mobilefirst

i have a eclipse with mobile first plugin installed. is it possible to build and deploy the app and adapters using ANT scripts to the mobile first server?..or do i need a standalone MobileFirst server installation(Mobile First with WAS liberty profile) to do this?..

If you have Eclipse with MobileFirst Studio, then you are not supposed to use ANT for building and deploying - you have the Eclipse UI for it.
You must not use the MobileFirst Studio for anything else other than development purposes.
Make sure you have bought MobileFirst Platform so that you could deploy it to a WAS/Liberty/Tomcat instance, where you can then also use Ant to deploy artifacts to the MobileFirst Server.
I suggest reading here: https://www-01.ibm.com/support/knowledgecenter/#SSHS8R_6.3.0/wl_welcome.html

Related

How to add Runtime environment in mobile first 7.1?

After installing MobileFirst Platform , It give No run time is there.
My configuration was given below:
1. WebSphere Application Server 8.5
2. Oracle 11g Enterprise edition
3. Mobile-first platform 7.1
Please help me to create Run-time in Mobile first Console.
From where I will download sample war file (for ex: project.war) for creating run-time environment.
You have only mentioned "after installing IBM MobileFirst" and not exactly the steps followed. Configuring IBM MobileFirst Platform has two phases:
a) Installing the application binaries into the filesystem using Installation Manager.
b) Deploying MFP admin services and runtime in to an Application server using Server configuration tool or ANT scripts. The runtime war file needs to be created using IBM MFP Studio.
If you have not performed phase 2 or only installed admin services and not the runtime, go through the information in these links:
Using server configuration tool
Using ANT scripts to deploy
To get you started with various MFP 7.1 projects , you refer and use any of the sample applications available at MFP 7.1 Getting started tutorials.
Once you have any of these sample projects loaded or a new project created in MFP studio, you can build the server side artefacts (adapters, application wlapps and runtime war) within the MFP studio or using ANT scripts:
Refer this link for further details and steps- Deploy projects.

MobileFirst Studio 8.0 installation

I have install MobileFirst 8.0.0 studio plugin from eclipse marketplace. But I can not find option to create new MobileFirst project like which I used to find in version 7.1.0.
So there is no support in eclipse for 8.0 version? Only CLI is available for version 8.0? or is there any other way? Can some one help me in this.
In MobileFirst Foundation 8.0 you create either native apps (using Xcode, Android Studio, Visual Studio) and add the SDK to the project, or standard Cordova apps (using the Cordova CLI) and add the MobileFirst Cordova plug-in.
MobileFirst Studio 8.0 for Eclipse is meant to work in conjunction with the THyM plug-in for Eclipse as a way to create an IDE to develop your Cordova application.
Learn more about to get started with development in Eclipse, in this tutorial: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/using-mobilefirst-cli-in-eclipse/
You can still use MFP CLI to deploy the app/artifacts on to MFP server.
For more/clear details please refer the Migration Cook Book

how to add runtime in ibm mobilefirst 7.1 in remote server

how to add runtime in ibm mobilefirst 7.1 in remote server ?
As of now I have remote server where already one runtime exist, I have deployed a .wlapp and .adapter file in console and I am testing this on a device and its working fine as mentioned in IBM MobileFirst Platform 7.1 - No runtime environment deployed in this server
Question is how can i add(deploy) another runtime ?
Assuming you have another MobileFirst project, you need to use the IBM Configuration Tool in order to deploy the second .war file. It's basically following the same steps you did for the first .war file, only deploying a different (.war) file...
You can also deploy manually: http://www.ibm.com/support/knowledgecenter/en/SSHS8R_7.1.0/com.ibm.worklight.deploy.doc/admin/c_manually_configuring_app_server.html

Is it possible to deploy a MFP v6.3 runtime with a higher level than the MFP Console and Services applications?

I know that there is a separation of the lifecycle of the MFP Studio and MFP Server. What happens if the development team updated the Studio with a fix? In other words, is it supported to deploy a runtime for example v6.3.0.00.20150214-1702 to a MFP Server v6.3.0.00.20141127-1357?
The scenario you've described it a supported scenario. The MFP Server should be able to host a .war file generated from a newer MFP Studio build of the same major version (6.3, and I believe support from this scenario exists starting 6.1 or 6.2).
Of course, if you encounter a problem you should probably open a PMR on that. :)

IBM Worklight 6.1 - Build and Deploy not available?

I have used Worklight 5 for Eclipse Juno multiple times and had great success when building hybrid apps for Android and iOS. However, I just recently installed a new version of Eclipse Juno on a new computer and later installed Android ADT and Worklight.
Eclipse works as normal for non-Worklight apps. When I create a Worklight 6.1 project and right-click the common folder, select "Run-As", I am not presented with any options to do just that. I am only seeing the options for "Preview and Run configurations" but should be seeing these mentioned options and "Build and Deploy".
Is there something corrupted in Worklight that I need to change to make these options re-appear? Are these options no longer used? If they are not used, how do I deploy a hybrid to Android, iOS, or any other platform?
In Worklight 6.1 they have re-swizzled the options a bit, but if you want the equivalent of "Build all and Deploy," select: "Run on Worklight Development Server." You need to select the App, not the common folder to get that option.
Since you say you've been using Worklight 5 and have now switched to Worklight 6.1.0, I suggest that you will review the following:
What's New in Worklight 6.0.0.0
What's New in Worklight 6.1.0.0
IBM Worklight training modules
The Run As > Build and Deploy action was renamed to Run As > Run on Worklight Development Server and additional actions were added as well. You will want to take some time to re-familiarize yourself with the production...
Tip: no need to re-build after every web resource change you make; just refresh your previewed app and the change will be there.
In the image:
Run on Worklight Development Server = build and deploy
Build Android Environment = build only, don't deploy
Run on Android Studio = if you've installed Android Studio, the built project will open there
Build Settings and Deploy Target = configurations for minification/concatenation/other as well as changing the server the app will be deployed to, etc.
If you do not see these actions, I think it'd be best if you will get a fresh copy of Eclipse Java EE (4.2.2 ("Juno" SR2) or 4.3.1 ("Kepler" SR1)) and re-install Worklight Developer Edition from the Eclipse Marketplace (or your Consumer/Enterprise Edition if you're a Business Partner/Customer).