I have been looking for MFP CLI doc how to deploy adapter to local MFP server but can't find one. I also can't find one in mfp help adapter.
What is the command?
Run the command mfp push to push an adapter to your locally running MobileFirst Server.
Related
Can i make some changes in MFP Admin console like changing the user >permissions, roles and so on ..., using IBM MobileFirst v7.1
The source for the console is available in the admin .war file you have deployed to your application server. However note that this operation is not supported by IBM. If you encounter any errors, you're on your own.
Using CLI runtime is not pushed to remote development server (only adapters and applications). Is there a way to push runtime (WAR) to remote development server?
The CLI is not supposed to deploy the .war file. The CLI only handles the project artifacts.
If you want to "share" a war file with another remote server then you could simply copy over the entire project folder to a different machine and launch it there. Then, in your original machine, add the remote server using "mfp server add".
Since the two projects are essentially the same, pushing wlapps and adapters should then pass successfully.
I am new in IBM MobileFirst Hybrid mobile application. Created Project HelloWorld hybrid mobile app. when i run this application to MobileFirst server means i got following error
Failed to deploy application 'HelloWorld' to MobileFirst Server: :
HTTP 403 - Forbidden
Can you tell me how to deploy the application to MobileFirst Server.
Thanks in Advance.
Attempt the following:
Try to re-install
Verify that you do not have a firewall running (if you do, you may need to properly adjust it)
Kill the Java process and try again
check your server Host name
check if some other tools use the same MF PORT
Is it possible to deploy an app to external Worklight server instance when I don't have the IBM Worklight Server installed on my computer ?. Is there any alternative to use features inside IBM Worklight Developer to allow us to deploy to external worklight server for testing environment ?
You can use Run AS --> Build for Remote Server option to build for external worklight server.
It will give you WLAPP files in bin folder. Copy that and deploy that in Worklight server console.
For more info please use this link
Find the following link for remote server deployment.
Deploying in test and production environment
I have read the posts:
IBM Worklight 6.0 - worklightserverhost attribute and the app-builder Ant task
IBM Worklight - How to connect to another Worklight Server located in another machine in the same network?
IBM Worklight 6.0 - application-descriptor.xml
And I think I'm missing something because all them stop with the generation of the wlapp for other servers.
After generating and installing the wlapp it is needed to generate and apk/ipa or "Run As" over the environment to execute that application.
The problem I'm having is that the deployed application in the device points to the development server always and not to the other server I have used for generating the .wlapp files with the (Run As -> Build For Remote Server...).
I have tried deploying the application with the property "publicWorkLighHostname" changed in the worklight.properites but it has no effect.
How do I deploy an application to the device pointing to the desired server?
Thank you.
Run As >> Build All and Deploy / Build specific environment, points to the local development server
Build for Remote Server, points to a server of your choosing
If you perform a Build All and Deploy after a Build for Remote Server, this will overwrite the previous action and the artifacts will again point to the local development machine.
So do a Build for Remote Server. Worklight Studio knows where to put what so that the app will reach the server.